3 - Install Tailwind + DaisyUI, add directives to app.css
This commit is contained in:
parent
f8c0bcc191
commit
b044315f0b
9 changed files with 1212 additions and 4 deletions
93
assets/daisyui-theme.mjs
Normal file
93
assets/daisyui-theme.mjs
Normal file
File diff suppressed because one or more lines are too long
1026
assets/daisyui.mjs
Normal file
1026
assets/daisyui.mjs
Normal file
File diff suppressed because one or more lines are too long
|
|
@ -1,6 +1,5 @@
|
|||
body {
|
||||
background-color: skyblue;
|
||||
}
|
||||
@import "tailwindcss";
|
||||
@plugin "../daisyui.mjs";
|
||||
|
||||
html, body { height: 100%; margin: 0; }
|
||||
.map-container { height: 100vh; width: 100%; }
|
||||
|
|
|
|||
|
|
@ -41,6 +41,7 @@
|
|||
"symfony/validator": "8.1.*",
|
||||
"symfony/web-link": "8.1.*",
|
||||
"symfony/yaml": "8.1.*",
|
||||
"symfonycasts/tailwind-bundle": "^0.13.0",
|
||||
"twig/extra-bundle": "^2.12|^3.0",
|
||||
"twig/twig": "^2.12|^3.0"
|
||||
},
|
||||
|
|
|
|||
58
composer.lock
generated
58
composer.lock
generated
|
|
@ -4,7 +4,7 @@
|
|||
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
|
||||
"This file is @generated automatically"
|
||||
],
|
||||
"content-hash": "58ab8f1d3e73706e3387d4c6f3f711a9",
|
||||
"content-hash": "b14a697ba14ca17f0a5361d3e5fff5fc",
|
||||
"packages": [
|
||||
{
|
||||
"name": "composer/semver",
|
||||
|
|
@ -7481,6 +7481,62 @@
|
|||
],
|
||||
"time": "2026-05-29T05:06:50+00:00"
|
||||
},
|
||||
{
|
||||
"name": "symfonycasts/tailwind-bundle",
|
||||
"version": "v0.13.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/SymfonyCasts/tailwind-bundle.git",
|
||||
"reference": "0cedad5861c365d61bb9fdd52124b4bdf57c477c"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/SymfonyCasts/tailwind-bundle/zipball/0cedad5861c365d61bb9fdd52124b4bdf57c477c",
|
||||
"reference": "0cedad5861c365d61bb9fdd52124b4bdf57c477c",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"php": ">=8.1",
|
||||
"symfony/asset-mapper": "^6.3|^7.0|^8.0",
|
||||
"symfony/cache": "^6.3|^7.0|^8.0",
|
||||
"symfony/console": "^5.4|^6.3|^7.0|^8.0",
|
||||
"symfony/deprecation-contracts": "^2.2|^3.0",
|
||||
"symfony/http-client": "^5.4|^6.3|^7.0|^8.0",
|
||||
"symfony/process": "^5.4|^6.3|^7.0|^8.0"
|
||||
},
|
||||
"require-dev": {
|
||||
"phpunit/phpunit": "^9.6",
|
||||
"symfony/filesystem": "^6.3|^7.0|^8.0",
|
||||
"symfony/framework-bundle": "^6.3|^7.0|^8.0",
|
||||
"symfony/phpunit-bridge": "^6.3.9|^7.0|^8.0"
|
||||
},
|
||||
"type": "library",
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"Symfonycasts\\TailwindBundle\\": "src"
|
||||
}
|
||||
},
|
||||
"notification-url": "https://packagist.org/downloads/",
|
||||
"license": [
|
||||
"MIT"
|
||||
],
|
||||
"authors": [
|
||||
{
|
||||
"name": "Ryan Weaver",
|
||||
"homepage": "https://symfonycasts.com"
|
||||
}
|
||||
],
|
||||
"description": "Delightful Tailwind Support for Symfony + AssetMapper",
|
||||
"keywords": [
|
||||
"asset-mapper",
|
||||
"tailwind"
|
||||
],
|
||||
"support": {
|
||||
"issues": "https://github.com/SymfonyCasts/tailwind-bundle/issues",
|
||||
"source": "https://github.com/SymfonyCasts/tailwind-bundle/tree/v0.13.0"
|
||||
},
|
||||
"time": "2026-05-29T11:22:13+00:00"
|
||||
},
|
||||
{
|
||||
"name": "twig/extra-bundle",
|
||||
"version": "v3.24.0",
|
||||
|
|
|
|||
|
|
@ -15,4 +15,5 @@ return [
|
|||
Symfony\Bundle\MakerBundle\MakerBundle::class => ['dev' => true],
|
||||
DAMA\DoctrineTestBundle\DAMADoctrineTestBundle::class => ['test' => true],
|
||||
Zenstruck\Foundry\ZenstruckFoundryBundle::class => ['dev' => true, 'test' => true],
|
||||
Symfonycasts\TailwindBundle\SymfonycastsTailwindBundle::class => ['all' => true],
|
||||
];
|
||||
|
|
|
|||
6
config/packages/symfonycasts_tailwind.yaml
Normal file
6
config/packages/symfonycasts_tailwind.yaml
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
symfonycasts_tailwind:
|
||||
# Specify the EXACT version of Tailwind CSS you want to use
|
||||
binary_version: 'v4.1.11'
|
||||
|
||||
# Alternatively, you can specify the path to the binary that you manage yourself
|
||||
#binary: 'node_modules/.bin/tailwindcss'
|
||||
|
|
@ -1524,6 +1524,16 @@ use Symfony\Component\Config\Loader\ParamConfigurator as Param;
|
|||
* default_namespace?: scalar|Param|null, // Default namespace where stories will be created by maker. // Default: "Story"
|
||||
* },
|
||||
* }
|
||||
* @psalm-type SymfonycastsTailwindConfig = array{
|
||||
* input_css?: list<scalar|Param|null>,
|
||||
* config_file?: scalar|Param|null, // Path to the tailwind.config.js file // Default: "%kernel.project_dir%/tailwind.config.js"
|
||||
* binary?: scalar|Param|null, // The tailwind binary to use instead of downloading a new one // Default: null
|
||||
* binary_version?: scalar|Param|null, // Tailwind CLI version to download - null means the latest version // Default: null
|
||||
* binary_platform?: "auto"|"linux-arm64"|"linux-arm64-musl"|"linux-x64"|"linux-x64-musl"|"macos-arm64"|"macos-x64"|"windows-x64"|Param, // Tailwind CLI platform to download - "auto" will try to detect the platform automatically // Default: "auto"
|
||||
* postcss_config_file?: scalar|Param|null, // Path to PostCSS config file which is passed to the Tailwind CLI // Default: null
|
||||
* strict_mode?: bool|Param|null, // When enabled, an exception will be thrown if there are no built assets (default: false in `test` env, true otherwise) // Default: null
|
||||
* process_timeout?: int|Param, // Timeout in seconds for the Tailwind build process - use "0" to disable // Default: 60
|
||||
* }
|
||||
* @psalm-type ConfigType = array{
|
||||
* imports?: ImportsConfig,
|
||||
* parameters?: ParametersConfig,
|
||||
|
|
@ -1537,6 +1547,7 @@ use Symfony\Component\Config\Loader\ParamConfigurator as Param;
|
|||
* twig_extra?: TwigExtraConfig,
|
||||
* security?: SecurityConfig,
|
||||
* monolog?: MonologConfig,
|
||||
* symfonycasts_tailwind?: SymfonycastsTailwindConfig,
|
||||
* "when@dev"?: array{
|
||||
* imports?: ImportsConfig,
|
||||
* parameters?: ParametersConfig,
|
||||
|
|
@ -1554,6 +1565,7 @@ use Symfony\Component\Config\Loader\ParamConfigurator as Param;
|
|||
* monolog?: MonologConfig,
|
||||
* maker?: MakerConfig,
|
||||
* zenstruck_foundry?: ZenstruckFoundryConfig,
|
||||
* symfonycasts_tailwind?: SymfonycastsTailwindConfig,
|
||||
* },
|
||||
* "when@prod"?: array{
|
||||
* imports?: ImportsConfig,
|
||||
|
|
@ -1568,6 +1580,7 @@ use Symfony\Component\Config\Loader\ParamConfigurator as Param;
|
|||
* twig_extra?: TwigExtraConfig,
|
||||
* security?: SecurityConfig,
|
||||
* monolog?: MonologConfig,
|
||||
* symfonycasts_tailwind?: SymfonycastsTailwindConfig,
|
||||
* },
|
||||
* "when@test"?: array{
|
||||
* imports?: ImportsConfig,
|
||||
|
|
@ -1585,6 +1598,7 @@ use Symfony\Component\Config\Loader\ParamConfigurator as Param;
|
|||
* monolog?: MonologConfig,
|
||||
* dama_doctrine_test?: DamaDoctrineTestConfig,
|
||||
* zenstruck_foundry?: ZenstruckFoundryConfig,
|
||||
* symfonycasts_tailwind?: SymfonycastsTailwindConfig,
|
||||
* },
|
||||
* ...<string, ExtensionType|array{ // extra keys must follow the when@%env% pattern or match an extension alias
|
||||
* imports?: ImportsConfig,
|
||||
|
|
|
|||
12
symfony.lock
12
symfony.lock
|
|
@ -343,6 +343,18 @@
|
|||
"config/packages/messenger.yaml"
|
||||
]
|
||||
},
|
||||
"symfonycasts/tailwind-bundle": {
|
||||
"version": "0.13",
|
||||
"recipe": {
|
||||
"repo": "github.com/symfony/recipes",
|
||||
"branch": "main",
|
||||
"version": "0.8",
|
||||
"ref": "d0bd0276f74de90adfaa4c6cd74cc0caacd77e0a"
|
||||
},
|
||||
"files": [
|
||||
"config/packages/symfonycasts_tailwind.yaml"
|
||||
]
|
||||
},
|
||||
"twig/extra-bundle": {
|
||||
"version": "v3.24.0"
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in a new issue