@shuriken-ui/tailwind 4.0.0-alpha.1 → 4.0.0-alpha.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (63) hide show
  1. package/README.md +20 -74
  2. package/lib/css/focus.css +4 -0
  3. package/{src → lib}/css/mark.css +0 -3
  4. package/{src → lib}/css/mask.css +0 -3
  5. package/{src → lib}/css/slimscroll.css +8 -8
  6. package/lib/index.css +18 -0
  7. package/lib/theme.css +126 -0
  8. package/package.json +14 -53
  9. package/LICENSE.md +0 -21
  10. package/src/css/accordion.css +0 -175
  11. package/src/css/autocomplete.css +0 -511
  12. package/src/css/avatar-group.css +0 -138
  13. package/src/css/avatar.css +0 -738
  14. package/src/css/breadcrumb.css +0 -63
  15. package/src/css/button-action.css +0 -108
  16. package/src/css/button-close.css +0 -117
  17. package/src/css/button-group.css +0 -236
  18. package/src/css/button-icon.css +0 -97
  19. package/src/css/button.css +0 -565
  20. package/src/css/card.css +0 -69
  21. package/src/css/checkbox.css +0 -99
  22. package/src/css/dropdown-divider.css +0 -6
  23. package/src/css/dropdown-item.css +0 -62
  24. package/src/css/dropdown.css +0 -102
  25. package/src/css/focus.css +0 -12
  26. package/src/css/fullscreen-dropfile.css +0 -63
  27. package/src/css/heading.css +0 -78
  28. package/src/css/icon-box.css +0 -305
  29. package/src/css/input-file-regular.css +0 -255
  30. package/src/css/input-file.css +0 -224
  31. package/src/css/input-help-text.css +0 -7
  32. package/src/css/input-number.css +0 -469
  33. package/src/css/input.css +0 -402
  34. package/src/css/kbd.css +0 -94
  35. package/src/css/label.css +0 -6
  36. package/src/css/link.css +0 -8
  37. package/src/css/list.css +0 -23
  38. package/src/css/listbox.css +0 -511
  39. package/src/css/message-text.css +0 -72
  40. package/src/css/message.css +0 -245
  41. package/src/css/modal.css +0 -51
  42. package/src/css/pagination.css +0 -93
  43. package/src/css/paragraph.css +0 -78
  44. package/src/css/placeholder-page.css +0 -44
  45. package/src/css/placeload.css +0 -13
  46. package/src/css/progress-circle.css +0 -18
  47. package/src/css/progress.css +0 -90
  48. package/src/css/prose.css +0 -22
  49. package/src/css/radio.css +0 -73
  50. package/src/css/select.css +0 -404
  51. package/src/css/snack.css +0 -101
  52. package/src/css/switch-ball.css +0 -94
  53. package/src/css/switch-thin.css +0 -76
  54. package/src/css/tab-slider.css +0 -190
  55. package/src/css/tabs.css +0 -175
  56. package/src/css/tag.css +0 -312
  57. package/src/css/text.css +0 -78
  58. package/src/css/textarea.css +0 -228
  59. package/src/css/theme-switch.css +0 -65
  60. package/src/css/theme-toggle.css +0 -62
  61. package/src/css/toast.css +0 -132
  62. package/src/css/tooltip.css +0 -99
  63. package/src/index.css +0 -57
package/README.md CHANGED
@@ -13,7 +13,7 @@
13
13
 
14
14
  ---
15
15
 
16
- ## Shuriken UI - Tailwind CSS
16
+ ## Shuriken UI - Tailwind CSS v4
17
17
 
18
18
  Shuriken UI is a free and open-source Tailwind CSS UI Kit. It is a collection of components and templates that you can use to build your next Tailwind CSS project.
19
19
 
@@ -21,89 +21,35 @@ This package contains the Tailwind CSS preset, components, and shared utils like
21
21
 
22
22
  ## Installation
23
23
 
24
+ Install dependencies:
25
+
24
26
  ```bash
25
- pnpm install -D @shuriken-ui/tailwind
27
+ pnpm install -D @shuriken-ui/tailwind@next tailwindcss@next @tailwindcss/vite@next
26
28
  ```
27
29
 
28
- ## Usage
29
-
30
- The simplest way to register Shuriken UI is to use `withShurikenUI` helper function.
30
+ Add tailwind plugin to your `vite.config.ts`:
31
31
 
32
32
  ```ts
33
- // tailwind.config.ts
34
- import { withShurikenUI } from '@shuriken-ui/tailwind'
35
-
36
- export default withShurikenUI({
37
- // your tailwind config
38
- content: [],
39
- })
40
- ```
41
-
42
-
43
- You can also direcly import the preset and use it in your config.
33
+ import tailwindcss from '@tailwindcss/vite'
34
+ import { defineConfig } from 'vite'
44
35
 
45
- ```ts
46
- // tailwind.config.ts
47
- import type { Config } from 'tailwindcss'
48
- import preset from '@shuriken-ui/tailwind/preset'
49
-
50
- export default {
51
- // your tailwind config, with the preset
52
- content: [],
53
- presets: [preset],
54
- } satisfies Config
36
+ export default defineConfig({
37
+ plugins: [tailwindcss()],
38
+ });
55
39
  ```
56
40
 
41
+ Reference Shuriken UI in your `tailwind.css` file:
57
42
 
58
- Also, you can import only the components and utils you needs.
59
-
60
- ```ts
61
- // tailwind.config.ts
62
- import type { Config } from 'tailwindcss'
63
- import { fontFamily } from 'tailwindcss/defaultTheme'
64
- import colors from 'tailwindcss/colors'
65
-
66
- import { input, button } from '@shuriken-ui/tailwind/plugins'
67
-
68
- export default {
69
- // your tailwind config, with only the components you need
70
- plugins: [input, button],
71
- theme: {
72
- fontFamily: {
73
- sans: fontFamily.sans,
74
- heading: fontFamily.sans,
75
- alt: fontFamily.sans,
76
- mono: fontFamily.mono,
77
- },
78
- extend: {
79
- colors: {
80
- primary: colors.violet,
81
- 'primary-invert': colors.white,
82
- muted: colors.slate,
83
- info: colors.sky,
84
- success: colors.teal,
85
- warning: colors.amber,
86
- danger: colors.rose,
87
- },
88
- },
89
- },
90
- } satisfies Config
91
- ```
92
-
93
- ## Customization
43
+ ```css
44
+ @import 'tailwindcss';
45
+ @import '@shuriken-ui/tailwind';
94
46
 
95
- Shuriken UI is fully customizable. You can override components by using the `theme` option.
47
+ /* Register the dark mode variant (with .dark class) */
48
+ @variant dark (&:where(.dark, .dark *));
96
49
 
97
- ```ts
98
- export default withShurikenUI({
99
- theme: {
100
- extend: {
101
- nui: {
102
- // your customizations
103
- },
104
- },
105
- },
106
- })
50
+ @theme {
51
+ /* Customize your theme here */
52
+ }
107
53
  ```
108
54
 
109
- > note: Documentation is coming soon!
55
+ > See the [theme.css](https://github.com/shuriken-ui/shuriken-ui/blob/main/packages/tailwind/lib/theme.css) file for a complete list of available variables you can customize.
@@ -0,0 +1,4 @@
1
+ @utility nui-focus {
2
+ @apply outline-none ring-ring ring-1 ring-offset-2 ring-offset-white;
3
+ @apply dark:ring-offset-muted-950;
4
+ }
@@ -1,6 +1,3 @@
1
- /* generated using "pnpm jiti scripts/generate-utilities.ts" */
2
- /* @utility nui-mark */
3
-
4
1
  @utility nui-mark {
5
2
  @apply bg-primary-100 dark:bg-primary-800;
6
3
  @apply text-primary-800 dark:text-primary-200;
@@ -1,6 +1,3 @@
1
- /* generated using "pnpm jiti scripts/generate-utilities.ts" */
2
- /* @utility nui-mask */
3
-
4
1
  @utility nui-mask {
5
2
  mask-size: contain;
6
3
  mask-repeat: no-repeat;
@@ -1,11 +1,10 @@
1
- /* generated using "pnpm jiti scripts/generate-utilities.ts" */
2
- /* @utility nui-slimscroll */
3
-
4
1
  @utility nui-slimscroll {
2
+ scrollbar-width: auto !important;
3
+
5
4
  &::-webkit-scrollbar {
6
5
  scroll-behavior: smooth;
7
6
  scrollbar-gutter: stable;
8
- @apply w-[6px] h-[6px];
7
+ @apply w-[6px] h-[6px] block!;
9
8
  }
10
9
 
11
10
  &::-webkit-scrollbar-thumb {
@@ -20,13 +19,14 @@
20
19
  &::-webkit-scrollbar {
21
20
  scroll-behavior: smooth;
22
21
  scrollbar-gutter: stable;
23
- @apply w-[6px] h-[6px];
22
+ @apply w-[6px] h-[6px] block!;
23
+ }
24
+
25
+ &::-webkit-scrollbar-thumb {
26
+ @apply rounded-lg bg-transparent duration-300 transition-all;
24
27
  }
25
28
 
26
29
  &:hover::-webkit-scrollbar-thumb {
27
30
  @apply bg-black/20 dark:bg-white/20;
28
31
  }
29
32
  }
30
- @utility undefined {
31
- @apply rounded-lg bg-transparent duration-300 transition-all;
32
- }
package/lib/index.css ADDED
@@ -0,0 +1,18 @@
1
+ @plugin '@tailwindcss/typography';
2
+
3
+ @import './theme.css';
4
+
5
+ @import './css/focus.css';
6
+ @import './css/mark.css';
7
+ @import './css/mask.css';
8
+ @import './css/slimscroll.css';
9
+
10
+ @layer base {
11
+ .dark {
12
+ color-scheme: dark;
13
+ }
14
+ .nui-no-transition * {
15
+ transition-property: none !important;
16
+ transition-duration: 0 !important;
17
+ }
18
+ }
package/lib/theme.css ADDED
@@ -0,0 +1,126 @@
1
+ @theme {
2
+ /* --font-sans: 'Titillium Web', sans-serif; */
3
+ /* --font-monospace: 'Titillium Web', sans-serif; */
4
+ --font-alt: var(--font-sans);
5
+ --font-heading: var(--font-sans);
6
+
7
+ /** Colors */
8
+ --color-muted-50: var(--color-gray-50);
9
+ --color-muted-100: var(--color-gray-100);
10
+ --color-muted-200: var(--color-gray-200);
11
+ --color-muted-300: var(--color-gray-300);
12
+ --color-muted-400: var(--color-gray-400);
13
+ --color-muted-500: var(--color-gray-500);
14
+ --color-muted-600: var(--color-gray-600);
15
+ --color-muted-700: var(--color-gray-700);
16
+ --color-muted-800: var(--color-gray-800);
17
+ --color-muted-900: var(--color-gray-900);
18
+ --color-muted-950: var(--color-gray-950);
19
+
20
+ --color-primary-50: var(--color-purple-50);
21
+ --color-primary-100: var(--color-purple-100);
22
+ --color-primary-200: var(--color-purple-200);
23
+ --color-primary-300: var(--color-purple-300);
24
+ --color-primary-400: var(--color-purple-400);
25
+ --color-primary-500: var(--color-purple-500);
26
+ --color-primary-600: var(--color-purple-600);
27
+ --color-primary-700: var(--color-purple-700);
28
+ --color-primary-800: var(--color-purple-800);
29
+ --color-primary-900: var(--color-purple-900);
30
+ --color-primary-950: var(--color-purple-950);
31
+ --color-primary-invert: var(--color-white);
32
+ --color-primary-base: var(--color-primary-500);
33
+ --color-primary-heavy: var(--color-primary-600);
34
+ --color-primary-light: var(--color-primary-400);
35
+
36
+ --color-info-50: var(--color-sky-50);
37
+ --color-info-100: var(--color-sky-100);
38
+ --color-info-200: var(--color-sky-200);
39
+ --color-info-300: var(--color-sky-300);
40
+ --color-info-400: var(--color-sky-400);
41
+ --color-info-500: var(--color-sky-500);
42
+ --color-info-600: var(--color-sky-600);
43
+ --color-info-700: var(--color-sky-700);
44
+ --color-info-800: var(--color-sky-800);
45
+ --color-info-900: var(--color-sky-900);
46
+ --color-info-950: var(--color-sky-950);
47
+ --color-info-invert: var(--color-white);
48
+ --color-info-base: var(--color-info-600);
49
+ --color-info-heavy: var(--color-info-700);
50
+ --color-info-light: var(--color-info-500);
51
+
52
+ --color-success-50: var(--color-teal-50);
53
+ --color-success-100: var(--color-teal-100);
54
+ --color-success-200: var(--color-teal-200);
55
+ --color-success-300: var(--color-teal-300);
56
+ --color-success-400: var(--color-teal-400);
57
+ --color-success-500: var(--color-teal-500);
58
+ --color-success-600: var(--color-teal-600);
59
+ --color-success-700: var(--color-teal-700);
60
+ --color-success-800: var(--color-teal-800);
61
+ --color-success-900: var(--color-teal-900);
62
+ --color-success-950: var(--color-teal-950);
63
+ --color-success-invert: var(--color-white);
64
+ --color-success-base: var(--color-success-600);
65
+ --color-success-heavy: var(--color-success-700);
66
+ --color-success-light: var(--color-success-500);
67
+
68
+ --color-warning-50: var(--color-amber-50);
69
+ --color-warning-100: var(--color-amber-100);
70
+ --color-warning-200: var(--color-amber-200);
71
+ --color-warning-300: var(--color-amber-300);
72
+ --color-warning-400: var(--color-amber-400);
73
+ --color-warning-500: var(--color-amber-500);
74
+ --color-warning-600: var(--color-amber-600);
75
+ --color-warning-700: var(--color-amber-700);
76
+ --color-warning-800: var(--color-amber-800);
77
+ --color-warning-900: var(--color-amber-900);
78
+ --color-warning-950: var(--color-amber-950);
79
+ --color-warning-invert: var(--color-white);
80
+ --color-warning-base: var(--color-warning-600);
81
+ --color-warning-heavy: var(--color-warning-700);
82
+ --color-warning-light: var(--color-warning-500);
83
+
84
+ --color-destructive-50: var(--color-rose-50);
85
+ --color-destructive-100: var(--color-rose-100);
86
+ --color-destructive-200: var(--color-rose-200);
87
+ --color-destructive-300: var(--color-rose-300);
88
+ --color-destructive-400: var(--color-rose-400);
89
+ --color-destructive-500: var(--color-rose-500);
90
+ --color-destructive-600: var(--color-rose-600);
91
+ --color-destructive-700: var(--color-rose-700);
92
+ --color-destructive-800: var(--color-rose-800);
93
+ --color-destructive-900: var(--color-rose-900);
94
+ --color-destructive-950: var(--color-rose-950);
95
+ --color-destructive-invert: var(--color-white);
96
+ --color-destructive-base: var(--color-destructive-600);
97
+ --color-destructive-heavy: var(--color-destructive-700);
98
+ --color-destructive-light: var(--color-destructive-500);
99
+
100
+ --color-link: var(--color-primary-base);
101
+ --color-ring: var(--color-muted-300);
102
+
103
+ --animate-nui-placeload: nui-placeload 1s linear infinite forwards;
104
+ --animate-nui-progress-indeterminate: nui-progress-indeterminate 3s linear infinite forwards;
105
+ --animate-nui-spin: spin 2s linear infinite;
106
+
107
+ @keyframes nui-placeload {
108
+ 0% {
109
+ background-position: -468px 0;
110
+ }
111
+ 100% {
112
+ background-position: 468px 0;
113
+ }
114
+ }
115
+ @keyframes nui-progress-indeterminate {
116
+ 0% {
117
+ margin-left: -100%;
118
+ }
119
+ 60% {
120
+ margin-left: 100%;
121
+ }
122
+ 100% {
123
+ margin-left: -100%;
124
+ }
125
+ }
126
+ }
package/package.json CHANGED
@@ -1,10 +1,13 @@
1
1
  {
2
2
  "name": "@shuriken-ui/tailwind",
3
- "version": "4.0.0-alpha.1",
4
- "packageManager": "pnpm@9.12.3",
3
+ "version": "4.0.0-alpha.10",
5
4
  "license": "MIT",
6
5
  "author": "Css Ninja <hello@cssninja.io> (https://cssninja.io)",
7
- "repository": "shuriken-ui/tailwind",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "git+https://github.com/shuriken-ui/shuriken-ui.git",
9
+ "directory": "packages/tailwind"
10
+ },
8
11
  "bugs": "https://github.com/shuriken-ui/tailwind/issues",
9
12
  "homepage": "https://github.com/shuriken-ui/tailwind",
10
13
  "keywords": [
@@ -20,60 +23,18 @@
20
23
  "module"
21
24
  ],
22
25
  "type": "module",
23
- "main": "./src/index.css",
24
26
  "exports": {
25
- ".": "./src/index.css",
26
- "./*.css": "./src/css/*.css"
27
+ ".": "./lib/index.css",
28
+ "./theme.css": "./lib/theme.css",
29
+ "./*.css": "./lib/css/*.css"
27
30
  },
28
31
  "files": [
29
- "src/index.css",
30
- "src/css"
32
+ "lib/index.css",
33
+ "lib/theme.css",
34
+ "lib/css"
31
35
  ],
32
- "scripts": {
33
- "dev": "storybook dev -p 6006",
34
- "build": "unbuild",
35
- "build-storybook": "storybook build",
36
- "lint": "run-s lint:eslint:fix lint:prettier:fix",
37
- "lint:prettier": "prettier --check \"./**/*.(ts|css|scss|md)\"",
38
- "lint:prettier:fix": "prettier --write \"./**/*.(ts|css|scss|md)\"",
39
- "lint:eslint": "eslint -c .eslintrc.cjs --ext .ts .",
40
- "lint:eslint:fix": "eslint -c .eslintrc.cjs --fix --ext .ts .",
41
- "test": "run-s lint:eslint lint:prettier test:vitest",
42
- "test:vitest": "vitest",
43
- "coverage": "vitest run --coverage",
44
- "release": "run-s test release:*",
45
- "release:standard-version": "standard-version",
46
- "release:publish": "git push --follow-tags origin main && npm publish"
47
- },
48
36
  "dependencies": {
49
- "@tailwindcss/container-queries": "^0.1.1",
50
37
  "@tailwindcss/typography": "^0.5.15",
51
- "tailwindcss": "^4.0.0 || 4.0.0-alpha.31"
52
- },
53
- "devDependencies": {
54
- "@open-wc/lit-helpers": "0.7.0",
55
- "@storybook/addon-essentials": "^8.4.2",
56
- "@storybook/addon-links": "^8.4.2",
57
- "@storybook/addon-themes": "^8.4.2",
58
- "@storybook/blocks": "^8.4.2",
59
- "@storybook/web-components": "^8.4.2",
60
- "@storybook/web-components-vite": "^8.4.2",
61
- "@types/node": "22.9.0",
62
- "@typescript-eslint/eslint-plugin": "^8.13.0",
63
- "@vitest/coverage-v8": "^2.1.4",
64
- "@vitest/ui": "^2.1.4",
65
- "chromatic": "^11.16.5",
66
- "defu": "^6.1.4",
67
- "glob": "^11.0.0",
68
- "jiti": "^2.4.0",
69
- "jsdom": "^25.0.1",
70
- "lit": "^3.2.1",
71
- "npm-run-all": "^4.1.5",
72
- "standard-version": "^9.5.0",
73
- "storybook": "^8.4.2",
74
- "typescript": "^5.6.3",
75
- "unbuild": "^2.0.0",
76
- "vitest": "^2.1.4",
77
- "vitest-axe": "1.0.0-pre.2"
38
+ "tailwindcss": "4.0.0-beta.8"
78
39
  }
79
- }
40
+ }
package/LICENSE.md DELETED
@@ -1,21 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) 2023 Css Ninja
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
@@ -1,175 +0,0 @@
1
- /* generated using "pnpm jiti scripts/generate-utilities.ts" */
2
- /* @utility nui-accordion */
3
-
4
- @utility nui-accordion {
5
- &:not(:last-child) {
6
- @apply border-b-0;
7
- }
8
- @apply w-full block overflow-hidden;
9
- @apply bg-white dark:bg-muted-800;
10
- @apply hover:bg-muted-50/60 dark:hover:bg-muted-800/60;
11
- @apply border border-muted-300 dark:border-muted-700;
12
- @apply transition-colors duration-300;
13
-
14
- .nui-accordion-detail[open]:not(:first-child) {
15
- @apply border-t border-muted-300 dark:border-muted-700;
16
- }
17
-
18
- .nui-accordion-detail .nui-accordion-dot {
19
- @apply bg-muted-200 dark:bg-muted-700;
20
- }
21
-
22
- &.nui-accordion-chevron, &.nui-accordion-plus {
23
- .nui-accordion-header {
24
- @apply px-4 py-3;
25
- }
26
- }
27
-
28
- + .nui-accordion {
29
- @apply !border-t-0;
30
- }
31
- }
32
- @utility nui-accordion-summary {
33
- @apply cursor-pointer list-none outline-none;
34
- }
35
- @utility nui-accordion-header {
36
- @apply flex items-center justify-between;
37
-
38
- .nui-accordion-header-inner {
39
- @apply text-muted-800 dark:text-white;
40
- }
41
- }
42
- @utility nui-accordion-dot {
43
- @apply ms-2 h-3 w-3 rounded-full;
44
- @apply transition-colors duration-300;
45
- }
46
- @utility nui-icon-outer {
47
- @apply ms-2 flex items-center justify-center;
48
- @apply h-8 w-8 rounded-full;
49
- @apply border border-transparent dark:border-transparent;
50
- @apply bg-white dark:bg-muted-700/60;
51
- @apply transition-all duration-300;
52
- }
53
- @utility nui-chevron-icon {
54
- @apply text-muted-400 h-4 w-4;
55
- @apply transition-transform duration-300;
56
- }
57
- @utility nui-plus-icon {
58
- @apply text-muted-400 h-4 w-4;
59
- @apply transition-transform duration-300;
60
- }
61
- @utility nui-accordion-content {
62
- @apply px-4 pb-4;
63
- @apply font-sans text-sm text-muted-500 dark:text-muted-400;
64
- }
65
- @utility nui-accordion-default {
66
- @apply bg-white dark:bg-muted-800;
67
- @apply hover:bg-muted-50/60 dark:hover:bg-muted-800/60;
68
- @apply border border-muted-300 dark:border-muted-700;
69
- }
70
- @utility nui-accordion-default-contrast {
71
- @apply bg-white dark:bg-muted-950;
72
- @apply hover:bg-muted-50/60 dark:hover:bg-muted-950/60;
73
- @apply border border-muted-300 dark:border-muted-800;
74
- }
75
- @utility nui-accordion-muted {
76
- @apply bg-muted-100 dark:bg-muted-800;
77
- @apply hover:bg-muted-100/60 dark:hover:bg-muted-800/60;
78
- @apply border border-muted-200 dark:border-muted-700;
79
- }
80
- @utility nui-accordion-muted-contrast {
81
- @apply bg-muted-100 dark:bg-muted-950;
82
- @apply hover:bg-muted-100/60 dark:hover:bg-muted-950/60;
83
- @apply border border-muted-200 dark:border-muted-800;
84
- }
85
- @utility nui-dot-default {
86
- .nui-accordion-detail[open] .nui-accordion-dot {
87
- @apply bg-muted-400 dark:bg-muted-700;
88
- }
89
- }
90
- @utility nui-dot-primary {
91
- .nui-accordion-detail[open] .nui-accordion-dot {
92
- @apply bg-primary-500 dark:bg-primary-500;
93
- }
94
- }
95
- @utility nui-dot-info {
96
- .nui-accordion-detail[open] .nui-accordion-dot {
97
- @apply bg-info-500 dark:bg-info-500;
98
- }
99
- }
100
- @utility nui-dot-success {
101
- .nui-accordion-detail[open] .nui-accordion-dot {
102
- @apply bg-success-500 dark:bg-success-500;
103
- }
104
- }
105
- @utility nui-dot-warning {
106
- .nui-accordion-detail[open] .nui-accordion-dot {
107
- @apply bg-warning-500 dark:bg-warning-500;
108
- }
109
- }
110
- @utility nui-dot-danger {
111
- .nui-accordion-detail[open] .nui-accordion-dot {
112
- @apply bg-danger-500 dark:bg-danger-500;
113
- }
114
- }
115
- @utility nui-dot-dark {
116
- .nui-accordion-detail[open] .nui-accordion-dot {
117
- @apply bg-muted-900 dark:bg-muted-100;
118
- }
119
- }
120
- @utility nui-dot-black {
121
- .nui-accordion-detail[open] .nui-accordion-dot {
122
- @apply bg-black dark:bg-white;
123
- }
124
- }
125
- @utility nui-accordion-dot {
126
- .nui-accordion-header {
127
- @apply p-4;
128
- }
129
- }
130
- @utility nui-accordion-chevron {
131
- .nui-accordion-detail[open] .nui-icon-outer {
132
- @apply rotate-180;
133
- }
134
- }
135
- @utility nui-accordion-plus {
136
- .nui-accordion-detail[open] .nui-icon-outer {
137
- @apply rotate-45;
138
- }
139
- }
140
- @utility nui-accordion-straight {
141
- &.nui-accordion:first-child {
142
- @apply rounded-t-none;
143
- }
144
-
145
- &.nui-accordion:last-child {
146
- @apply rounded-b-none;
147
- }
148
- }
149
- @utility nui-accordion-rounded-sm {
150
- &.nui-accordion:first-child {
151
- @apply rounded-t-md;
152
- }
153
-
154
- &.nui-accordion:last-child {
155
- @apply rounded-b-md;
156
- }
157
- }
158
- @utility nui-accordion-rounded-md {
159
- &.nui-accordion:first-child {
160
- @apply rounded-t-lg;
161
- }
162
-
163
- &.nui-accordion:last-child {
164
- @apply rounded-b-lg;
165
- }
166
- }
167
- @utility nui-accordion-rounded-lg {
168
- &.nui-accordion:first-child {
169
- @apply rounded-t-xl;
170
- }
171
-
172
- &.nui-accordion:last-child {
173
- @apply rounded-b-xl;
174
- }
175
- }