set up new workflow and migrate to .forgejo dir #5
8 changed files with 260 additions and 377 deletions
|
|
@ -47,7 +47,7 @@ description: MANDATORY color usage rules for daisyUI 5
|
||||||
The default configuration enables `light` and `dark`. Choose specific themes, every theme, or no built-in themes in the daisyUI plugin:
|
The default configuration enables `light` and `dark`. Choose specific themes, every theme, or no built-in themes in the daisyUI plugin:
|
||||||
|
|
||||||
```css
|
```css
|
||||||
@plugin "daisyui" {
|
@plugin 'daisyui' {
|
||||||
themes:
|
themes:
|
||||||
light --default,
|
light --default,
|
||||||
dark --prefersdark,
|
dark --prefersdark,
|
||||||
|
|
@ -73,8 +73,8 @@ A CSS file with Tailwind CSS, daisyUI and a custom daisyUI theme looks like this
|
||||||
|
|
||||||
```css
|
```css
|
||||||
@import 'tailwindcss';
|
@import 'tailwindcss';
|
||||||
@plugin "daisyui";
|
@plugin 'daisyui';
|
||||||
@plugin "daisyui/theme" {
|
@plugin 'daisyui/theme' {
|
||||||
name: 'mytheme';
|
name: 'mytheme';
|
||||||
default: true; /* set as default */
|
default: true; /* set as default */
|
||||||
prefersdark: false; /* set as default dark mode (prefers-color-scheme:dark) */
|
prefersdark: false; /* set as default dark mode (prefers-color-scheme:dark) */
|
||||||
|
|
@ -129,7 +129,7 @@ People can use https://daisyui.com/theme-generator/ visual tool to create their
|
||||||
Use the built-in theme's name and override only the values that need to change. Other values are inherited:
|
Use the built-in theme's name and override only the values that need to change. Other values are inherited:
|
||||||
|
|
||||||
```css
|
```css
|
||||||
@plugin "daisyui/theme" {
|
@plugin 'daisyui/theme' {
|
||||||
name: 'light';
|
name: 'light';
|
||||||
default: true;
|
default: true;
|
||||||
--color-primary: blue;
|
--color-primary: blue;
|
||||||
|
|
|
||||||
|
|
@ -10,13 +10,13 @@ daisyUI 5 config docs: https://daisyui.com/docs/config/
|
||||||
daisyUI without config:
|
daisyUI without config:
|
||||||
|
|
||||||
```css
|
```css
|
||||||
@plugin "daisyui";
|
@plugin 'daisyui';
|
||||||
```
|
```
|
||||||
|
|
||||||
daisyUI config with `light` theme only:
|
daisyUI config with `light` theme only:
|
||||||
|
|
||||||
```css
|
```css
|
||||||
@plugin "daisyui" {
|
@plugin 'daisyui' {
|
||||||
themes: light --default;
|
themes: light --default;
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
@ -24,7 +24,7 @@ daisyUI config with `light` theme only:
|
||||||
daisyUI with all the default configs:
|
daisyUI with all the default configs:
|
||||||
|
|
||||||
```css
|
```css
|
||||||
@plugin "daisyui" {
|
@plugin 'daisyui' {
|
||||||
themes:
|
themes:
|
||||||
light --default,
|
light --default,
|
||||||
dark --prefersdark;
|
dark --prefersdark;
|
||||||
|
|
@ -42,7 +42,7 @@ All the other themes are enabled and can be used by adding `data-theme="THEME_NA
|
||||||
root scrollbar gutter is excluded. `daisy-` prefix is used for all daisyUI classes and console.log is disabled
|
root scrollbar gutter is excluded. `daisy-` prefix is used for all daisyUI classes and console.log is disabled
|
||||||
|
|
||||||
```css
|
```css
|
||||||
@plugin "daisyui" {
|
@plugin 'daisyui' {
|
||||||
themes:
|
themes:
|
||||||
light,
|
light,
|
||||||
dark,
|
dark,
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,7 @@ description: Installation notes for daisyUI 5
|
||||||
|
|
||||||
```css
|
```css
|
||||||
@import 'tailwindcss';
|
@import 'tailwindcss';
|
||||||
@plugin "daisyui";
|
@plugin 'daisyui';
|
||||||
```
|
```
|
||||||
|
|
||||||
### CDN
|
### CDN
|
||||||
|
|
|
||||||
|
|
@ -53,7 +53,7 @@ Use Tailwind's `@utility` directive to customize a daisyUI component globally:
|
||||||
daisyUI includes the `properties`, `rootcolor`, `scrollbar`, `rootscrolllock`, `rootscrollgutter`, and `svg` base modules. Exclude an unwanted module from the plugin config by its module name:
|
daisyUI includes the `properties`, `rootcolor`, `scrollbar`, `rootscrolllock`, `rootscrollgutter`, and `svg` base modules. Exclude an unwanted module from the plugin config by its module name:
|
||||||
|
|
||||||
```css
|
```css
|
||||||
@plugin "daisyui" {
|
@plugin 'daisyui' {
|
||||||
exclude: rootscrollgutter;
|
exclude: rootscrollgutter;
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
|
||||||
18
package.json
18
package.json
|
|
@ -15,28 +15,28 @@
|
||||||
"test": "npm run test:unit -- --run"
|
"test": "npm run test:unit -- --run"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@eslint/compat": "^1.2.8",
|
"@eslint/compat": "^2.1.0",
|
||||||
"@eslint/js": "^9.25.1",
|
"@eslint/js": "^10.0.1",
|
||||||
"@sveltejs/adapter-node": "^5.5.2",
|
"@sveltejs/adapter-node": "^5.5.2",
|
||||||
"@sveltejs/kit": "^2.20.7",
|
"@sveltejs/kit": "^2.20.7",
|
||||||
"@sveltejs/vite-plugin-svelte": "^5.0.3",
|
"@sveltejs/vite-plugin-svelte": "^5.0.3",
|
||||||
"@tailwindcss/vite": "^4.1.4",
|
"@tailwindcss/vite": "^4.1.4",
|
||||||
"autoprefixer": "^10.4.21",
|
"autoprefixer": "^10.4.21",
|
||||||
"daisyui": "^5.5.14",
|
"daisyui": "^5.5.14",
|
||||||
"eslint": "^9.25.1",
|
"eslint": "^10.8.1",
|
||||||
"eslint-config-prettier": "^10.1.2",
|
"eslint-config-prettier": "^10.1.2",
|
||||||
"eslint-plugin-svelte": "^3.5.1",
|
"eslint-plugin-svelte": "^3.22.0",
|
||||||
"globals": "^16.0.0",
|
"globals": "^17.9.0",
|
||||||
"mdsvex": "^0.12.6",
|
"mdsvex": "^0.12.6",
|
||||||
"pino-pretty": "^13.0.0",
|
"pino-pretty": "^13.0.0",
|
||||||
"prettier": "^3.5.3",
|
"prettier": "^3.9.6",
|
||||||
"prettier-plugin-svelte": "^3.3.3",
|
"prettier-plugin-svelte": "^4.1.1",
|
||||||
"prettier-plugin-tailwindcss": "^0.6.11",
|
"prettier-plugin-tailwindcss": "^0.8.1",
|
||||||
"svelte": "^5.28.2",
|
"svelte": "^5.28.2",
|
||||||
"svelte-check": "^4.1.6",
|
"svelte-check": "^4.1.6",
|
||||||
"tailwindcss": "^4.1.4",
|
"tailwindcss": "^4.1.4",
|
||||||
"typescript": "^5.8.3",
|
"typescript": "^5.8.3",
|
||||||
"typescript-eslint": "^8.31.0",
|
"typescript-eslint": "^8.67.0",
|
||||||
"vite": "^6.3.3",
|
"vite": "^6.3.3",
|
||||||
"vitest": "^3.1.2"
|
"vitest": "^3.1.2"
|
||||||
},
|
},
|
||||||
|
|
|
||||||
594
pnpm-lock.yaml
generated
594
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load diff
|
|
@ -1,6 +1,6 @@
|
||||||
@import 'tailwindcss';
|
@import 'tailwindcss';
|
||||||
|
|
||||||
@plugin "daisyui" {
|
@plugin 'daisyui' {
|
||||||
themes:
|
themes:
|
||||||
nord --default,
|
nord --default,
|
||||||
forest --prefersdark;
|
forest --prefersdark;
|
||||||
|
|
|
||||||
|
|
@ -56,8 +56,7 @@
|
||||||
name="message"
|
name="message"
|
||||||
form="contact"
|
form="contact"
|
||||||
class="textarea textarea-bordered h-full min-h-48 w-full resize-none"
|
class="textarea textarea-bordered h-full min-h-48 w-full resize-none"
|
||||||
placeholder="Message"
|
placeholder="Message"></textarea>
|
||||||
></textarea>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<button disabled={loading} type="submit" class="btn btn-primary transition-colors duration-400">
|
<button disabled={loading} type="submit" class="btn btn-primary transition-colors duration-400">
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue