@shuriken-ui/tailwind 4.0.0-alpha.3 → 4.0.0-alpha.5
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.
- package/{src → lib}/css/accordion.css +21 -21
- package/{src → lib}/css/autocomplete.css +46 -47
- package/{src → lib}/css/avatar-group.css +19 -20
- package/{src → lib}/css/avatar.css +25 -26
- package/{src → lib}/css/breadcrumb.css +6 -7
- package/{src → lib}/css/button-action.css +0 -1
- package/{src → lib}/css/button-close.css +1 -2
- package/{src → lib}/css/button-group.css +0 -1
- package/{src → lib}/css/button-icon.css +2 -3
- package/{src → lib}/css/button.css +0 -1
- package/{src → lib}/css/card.css +0 -1
- package/{src → lib}/css/checkbox.css +6 -7
- package/{src → lib}/css/dropdown-divider.css +0 -1
- package/{src → lib}/css/dropdown-item.css +14 -15
- package/{src → lib}/css/dropdown.css +21 -22
- package/{src → lib}/css/focus.css +0 -1
- package/{src → lib}/css/fullscreen-dropfile.css +2 -3
- package/{src → lib}/css/heading.css +11 -12
- package/{src → lib}/css/icon-box.css +69 -70
- package/{src → lib}/css/input-file-regular.css +66 -67
- package/{src → lib}/css/input-file.css +0 -1
- package/{src → lib}/css/input-help-text.css +0 -1
- package/{src → lib}/css/input-number.css +0 -1
- package/{src → lib}/css/input.css +33 -33
- package/{src → lib}/css/kbd.css +1 -2
- package/{src → lib}/css/label.css +0 -1
- package/{src → lib}/css/link.css +0 -1
- package/{src → lib}/css/list.css +1 -1
- package/{src → lib}/css/listbox.css +0 -1
- package/{src → lib}/css/mark.css +0 -1
- package/{src → lib}/css/mask.css +0 -1
- package/{src → lib}/css/message-text.css +0 -1
- package/{src → lib}/css/message.css +5 -7
- package/{src → lib}/css/modal.css +0 -1
- package/{src → lib}/css/pagination.css +3 -4
- package/{src → lib}/css/paragraph.css +11 -12
- package/{src → lib}/css/placeholder-page.css +0 -1
- package/lib/css/placeload.css +11 -0
- package/{src → lib}/css/progress-circle.css +2 -3
- package/{src → lib}/css/progress.css +1 -2
- package/{src → lib}/css/prose.css +2 -2
- package/{src → lib}/css/radio.css +0 -1
- package/{src → lib}/css/select.css +0 -1
- package/{src → lib}/css/slimscroll.css +0 -1
- package/{src → lib}/css/snack.css +0 -1
- package/{src → lib}/css/switch-ball.css +0 -1
- package/{src → lib}/css/switch-thin.css +0 -1
- package/{src → lib}/css/tab-slider.css +0 -1
- package/{src → lib}/css/tabs.css +30 -32
- package/{src → lib}/css/tag.css +1 -2
- package/lib/css/text.css +77 -0
- package/{src → lib}/css/textarea.css +0 -1
- package/{src → lib}/css/theme-switch.css +0 -1
- package/{src → lib}/css/theme-toggle.css +0 -1
- package/{src → lib}/css/toast.css +2 -3
- package/{src → lib}/css/tooltip.css +0 -21
- package/{src → lib}/index.css +11 -9
- package/{src → lib}/theme.css +37 -0
- package/package.json +13 -53
- package/LICENSE.md +0 -21
- package/README.md +0 -109
- package/src/css/placeload.css +0 -13
- package/src/css/text.css +0 -78
package/lib/css/text.css
ADDED
@@ -0,0 +1,77 @@
|
|
1
|
+
/* @utility nui-text */
|
2
|
+
|
3
|
+
@utility nui-text {
|
4
|
+
@apply font-sans;
|
5
|
+
}
|
6
|
+
@utility nui-text-content-xs {
|
7
|
+
@apply text-xs;
|
8
|
+
}
|
9
|
+
@utility nui-text-content-sm {
|
10
|
+
@apply text-sm;
|
11
|
+
}
|
12
|
+
@utility nui-text-content-md {
|
13
|
+
@apply text-base;
|
14
|
+
}
|
15
|
+
@utility nui-text-content-lg {
|
16
|
+
@apply text-lg;
|
17
|
+
}
|
18
|
+
@utility nui-text-content-xl {
|
19
|
+
@apply text-xl;
|
20
|
+
}
|
21
|
+
@utility nui-text-content-2xl {
|
22
|
+
@apply text-2xl;
|
23
|
+
}
|
24
|
+
@utility nui-text-content-3xl {
|
25
|
+
@apply text-3xl;
|
26
|
+
}
|
27
|
+
@utility nui-text-content-4xl {
|
28
|
+
@apply text-4xl;
|
29
|
+
}
|
30
|
+
@utility nui-text-content-5xl {
|
31
|
+
@apply text-5xl;
|
32
|
+
}
|
33
|
+
@utility nui-text-content-6xl {
|
34
|
+
@apply text-6xl;
|
35
|
+
}
|
36
|
+
@utility nui-text-content-7xl {
|
37
|
+
@apply text-7xl;
|
38
|
+
}
|
39
|
+
@utility nui-text-content-8xl {
|
40
|
+
@apply text-8xl;
|
41
|
+
}
|
42
|
+
@utility nui-text-content-9xl {
|
43
|
+
@apply text-9xl;
|
44
|
+
}
|
45
|
+
@utility nui-text-weight-light {
|
46
|
+
@apply font-light;
|
47
|
+
}
|
48
|
+
@utility nui-text-weight-normal {
|
49
|
+
@apply font-normal;
|
50
|
+
}
|
51
|
+
@utility nui-text-weight-medium {
|
52
|
+
@apply font-medium;
|
53
|
+
}
|
54
|
+
@utility nui-text-weight-semibold {
|
55
|
+
@apply font-semibold;
|
56
|
+
}
|
57
|
+
@utility nui-text-weight-bold {
|
58
|
+
@apply font-bold;
|
59
|
+
}
|
60
|
+
@utility nui-text-weight-extrabold {
|
61
|
+
@apply font-extrabold;
|
62
|
+
}
|
63
|
+
@utility nui-text-lead-none {
|
64
|
+
@apply leading-none;
|
65
|
+
}
|
66
|
+
@utility nui-text-lead-normal {
|
67
|
+
@apply leading-normal;
|
68
|
+
}
|
69
|
+
@utility nui-text-lead-tight {
|
70
|
+
@apply leading-tight;
|
71
|
+
}
|
72
|
+
@utility nui-text-lead-snug {
|
73
|
+
@apply leading-snug;
|
74
|
+
}
|
75
|
+
@utility nui-text-lead-loose {
|
76
|
+
@apply leading-loose;
|
77
|
+
}
|
@@ -1,4 +1,3 @@
|
|
1
|
-
/* generated using "pnpm jiti scripts/generate-utilities.ts" */
|
2
1
|
/* @utility nui-toast */
|
3
2
|
|
4
3
|
@utility nui-toast {
|
@@ -8,7 +7,7 @@
|
|
8
7
|
@apply flex items-center grow gap-2 px-4 py-3;
|
9
8
|
}
|
10
9
|
@utility nui-toast-title {
|
11
|
-
@apply nui-heading nui-heading-sm nui-weight-medium;
|
10
|
+
@apply nui-heading nui-heading-sm nui-heading-weight-medium;
|
12
11
|
@apply text-muted-800 dark:text-muted-100;
|
13
12
|
}
|
14
13
|
@utility nui-toast-subtitle {
|
@@ -21,7 +20,7 @@
|
|
21
20
|
@utility nui-toast-icon-block {
|
22
21
|
@apply h-16 w-16 flex items-center justify-center;
|
23
22
|
}
|
24
|
-
@utility nui-button-close {
|
23
|
+
@utility nui-toast-button-close {
|
25
24
|
@apply ms-auto;
|
26
25
|
}
|
27
26
|
@utility nui-toast-low-contrast {
|
@@ -1,4 +1,3 @@
|
|
1
|
-
/* generated using "pnpm jiti scripts/generate-utilities.ts" */
|
2
1
|
/* @utility nui-tooltip */
|
3
2
|
|
4
3
|
[data-nui-tooltip] {
|
@@ -97,23 +96,3 @@
|
|
97
96
|
[data-nui-tooltip][data-nui-tooltip-position^='left']:hover::before,[data-nui-tooltip][data-nui-tooltip-position^='left']:hover::after,[data-nui-tooltip][data-nui-tooltip-position^='right']:hover::before,[data-nui-tooltip][data-nui-tooltip-position^='right']:hover::after,[data-nui-tooltip][data-nui-tooltip-position^='start']:hover::before,[data-nui-tooltip][data-nui-tooltip-position^='start']:hover::after,[data-nui-tooltip][data-nui-tooltip-position^='end']:hover::before,[data-nui-tooltip][data-nui-tooltip-position^='end']:hover::after,[data-nui-tooltip][data-nui-tooltip-position^='left']:focus-visible::before,[data-nui-tooltip][data-nui-tooltip-position^='left']:focus-visible::after,[data-nui-tooltip][data-nui-tooltip-position^='right']:focus-visible::before,[data-nui-tooltip][data-nui-tooltip-position^='right']:focus-visible::after,[data-nui-tooltip][data-nui-tooltip-position^='start']:focus-visible::before,[data-nui-tooltip][data-nui-tooltip-position^='start']:focus-visible::after,[data-nui-tooltip][data-nui-tooltip-position^='end']:focus-visible::before,[data-nui-tooltip][data-nui-tooltip-position^='end']:focus-visible::after {
|
98
97
|
@apply animate-nui-tooltip-y;
|
99
98
|
}
|
100
|
-
|
101
|
-
@utility animate-nui-tooltip-x {
|
102
|
-
animation: nui-tooltip-x 300ms ease-out forwards;
|
103
|
-
}
|
104
|
-
@utility animate-nui-tooltip-y {
|
105
|
-
animation: nui-tooltip-y 300ms ease-out forwards;
|
106
|
-
}
|
107
|
-
|
108
|
-
@keyframes nui-tooltip-x {
|
109
|
-
to {
|
110
|
-
opacity: 1;
|
111
|
-
transform: translate(-50%, 0);
|
112
|
-
}
|
113
|
-
}
|
114
|
-
@keyframes nui-tooltip-y {
|
115
|
-
to {
|
116
|
-
opacity: 1;
|
117
|
-
transform: translate(0, -50%);
|
118
|
-
}
|
119
|
-
}
|
package/{src → lib}/index.css
RENAMED
@@ -4,43 +4,45 @@
|
|
4
4
|
|
5
5
|
@import './css/accordion.css';
|
6
6
|
@import './css/autocomplete.css';
|
7
|
-
@import './css/avatar.css';
|
8
7
|
@import './css/avatar-group.css';
|
8
|
+
@import './css/avatar.css';
|
9
9
|
@import './css/breadcrumb.css';
|
10
|
-
@import './css/button.css';
|
11
10
|
@import './css/button-action.css';
|
12
11
|
@import './css/button-close.css';
|
13
12
|
@import './css/button-group.css';
|
14
13
|
@import './css/button-icon.css';
|
14
|
+
@import './css/button.css';
|
15
15
|
@import './css/card.css';
|
16
16
|
@import './css/checkbox.css';
|
17
|
-
@import './css/dropdown.css';
|
18
17
|
@import './css/dropdown-divider.css';
|
19
18
|
@import './css/dropdown-item.css';
|
19
|
+
@import './css/dropdown.css';
|
20
20
|
@import './css/focus.css';
|
21
21
|
@import './css/fullscreen-dropfile.css';
|
22
22
|
@import './css/heading.css';
|
23
23
|
@import './css/icon-box.css';
|
24
|
-
@import './css/input.css';
|
25
|
-
@import './css/input-file.css';
|
26
24
|
@import './css/input-file-regular.css';
|
25
|
+
@import './css/input-file.css';
|
27
26
|
@import './css/input-help-text.css';
|
28
27
|
@import './css/input-number.css';
|
28
|
+
@import './css/input.css';
|
29
29
|
@import './css/kbd.css';
|
30
30
|
@import './css/label.css';
|
31
31
|
@import './css/link.css';
|
32
|
+
@import './css/list.css';
|
32
33
|
@import './css/listbox.css';
|
33
34
|
@import './css/mark.css';
|
34
35
|
@import './css/mask.css';
|
35
|
-
@import './css/message.css';
|
36
36
|
@import './css/message-text.css';
|
37
|
+
@import './css/message.css';
|
37
38
|
@import './css/modal.css';
|
38
39
|
@import './css/pagination.css';
|
39
40
|
@import './css/paragraph.css';
|
40
41
|
@import './css/placeholder-page.css';
|
41
|
-
@import './css/
|
42
|
+
@import './css/placeload.css';
|
42
43
|
@import './css/progress-circle.css';
|
43
|
-
|
44
|
+
@import './css/progress.css';
|
45
|
+
@import './css/prose.css';
|
44
46
|
@import './css/radio.css';
|
45
47
|
@import './css/select.css';
|
46
48
|
@import './css/slimscroll.css';
|
@@ -55,4 +57,4 @@
|
|
55
57
|
@import './css/theme-switch.css';
|
56
58
|
@import './css/theme-toggle.css';
|
57
59
|
@import './css/toast.css';
|
58
|
-
|
60
|
+
@import './css/tooltip.css';
|
package/{src → lib}/theme.css
RENAMED
@@ -77,4 +77,41 @@
|
|
77
77
|
--color-danger-800: var(--color-rose-800);
|
78
78
|
--color-danger-900: var(--color-rose-900);
|
79
79
|
--color-danger-950: var(--color-rose-950);
|
80
|
+
|
81
|
+
--animate-nui-placeload: nui-placeload 1s linear infinite forwards;
|
82
|
+
--animate-nui-progress-indeterminate: nui-progress-indeterminate 3s linear infinite forwards;
|
83
|
+
--animate-nui-tooltip-x: nui-tooltip-x 300ms ease-out forwards;
|
84
|
+
--animate-nui-tooltip-y: nui-tooltip-y 300ms ease-out forwards;
|
85
|
+
|
86
|
+
@keyframes nui-placeload {
|
87
|
+
0% {
|
88
|
+
background-position: -468px 0;
|
89
|
+
}
|
90
|
+
100% {
|
91
|
+
background-position: 468px 0;
|
92
|
+
}
|
93
|
+
}
|
94
|
+
@keyframes nui-progress-indeterminate {
|
95
|
+
0% {
|
96
|
+
margin-left: -100%;
|
97
|
+
}
|
98
|
+
60% {
|
99
|
+
margin-left: 100%;
|
100
|
+
}
|
101
|
+
100% {
|
102
|
+
margin-left: -100%;
|
103
|
+
}
|
104
|
+
}
|
105
|
+
@keyframes nui-tooltip-x {
|
106
|
+
to {
|
107
|
+
opacity: 1;
|
108
|
+
transform: translate(-50%, 0);
|
109
|
+
}
|
110
|
+
}
|
111
|
+
@keyframes nui-tooltip-y {
|
112
|
+
to {
|
113
|
+
opacity: 1;
|
114
|
+
transform: translate(0, -50%);
|
115
|
+
}
|
116
|
+
}
|
80
117
|
}
|
package/package.json
CHANGED
@@ -1,9 +1,13 @@
|
|
1
1
|
{
|
2
2
|
"name": "@shuriken-ui/tailwind",
|
3
|
-
"version": "4.0.0-alpha.
|
3
|
+
"version": "4.0.0-alpha.5",
|
4
4
|
"license": "MIT",
|
5
5
|
"author": "Css Ninja <hello@cssninja.io> (https://cssninja.io)",
|
6
|
-
"repository":
|
6
|
+
"repository": {
|
7
|
+
"type": "git",
|
8
|
+
"url": "git+https://github.com/shuriken-ui/shuriken-ui.git",
|
9
|
+
"directory": "packages/tailwind"
|
10
|
+
},
|
7
11
|
"bugs": "https://github.com/shuriken-ui/tailwind/issues",
|
8
12
|
"homepage": "https://github.com/shuriken-ui/tailwind",
|
9
13
|
"keywords": [
|
@@ -19,62 +23,18 @@
|
|
19
23
|
"module"
|
20
24
|
],
|
21
25
|
"type": "module",
|
22
|
-
"main": "./src/index.css",
|
23
26
|
"exports": {
|
24
|
-
".": "./
|
25
|
-
"./theme.css": "./
|
26
|
-
"./*.css": "./
|
27
|
+
".": "./lib/index.css",
|
28
|
+
"./theme.css": "./lib/theme.css",
|
29
|
+
"./*.css": "./lib/css/*.css"
|
27
30
|
},
|
28
31
|
"files": [
|
29
|
-
"
|
30
|
-
"
|
31
|
-
"
|
32
|
+
"lib/index.css",
|
33
|
+
"lib/theme.css",
|
34
|
+
"lib/css"
|
32
35
|
],
|
33
36
|
"dependencies": {
|
34
|
-
"@tailwindcss/container-queries": "^0.1.1",
|
35
37
|
"@tailwindcss/typography": "^0.5.15",
|
36
|
-
"tailwindcss": "
|
37
|
-
},
|
38
|
-
"devDependencies": {
|
39
|
-
"@open-wc/lit-helpers": "0.7.0",
|
40
|
-
"@storybook/addon-essentials": "^8.4.2",
|
41
|
-
"@storybook/addon-links": "^8.4.2",
|
42
|
-
"@storybook/addon-themes": "^8.4.2",
|
43
|
-
"@storybook/blocks": "^8.4.2",
|
44
|
-
"@storybook/web-components": "^8.4.2",
|
45
|
-
"@storybook/web-components-vite": "^8.4.2",
|
46
|
-
"@types/node": "22.9.0",
|
47
|
-
"@typescript-eslint/eslint-plugin": "^8.13.0",
|
48
|
-
"@vitest/coverage-v8": "^2.1.4",
|
49
|
-
"@vitest/ui": "^2.1.4",
|
50
|
-
"chromatic": "^11.16.5",
|
51
|
-
"defu": "^6.1.4",
|
52
|
-
"glob": "^11.0.0",
|
53
|
-
"jiti": "^2.4.0",
|
54
|
-
"jsdom": "^25.0.1",
|
55
|
-
"lit": "^3.2.1",
|
56
|
-
"npm-run-all": "^4.1.5",
|
57
|
-
"standard-version": "^9.5.0",
|
58
|
-
"storybook": "^8.4.2",
|
59
|
-
"typescript": "^5.6.3",
|
60
|
-
"unbuild": "^2.0.0",
|
61
|
-
"vitest": "^2.1.4",
|
62
|
-
"vitest-axe": "1.0.0-pre.2"
|
63
|
-
},
|
64
|
-
"scripts": {
|
65
|
-
"dev": "storybook dev -p 6006",
|
66
|
-
"build": "unbuild",
|
67
|
-
"build-storybook": "storybook build",
|
68
|
-
"lint": "run-s lint:eslint:fix lint:prettier:fix",
|
69
|
-
"lint:prettier": "prettier --check \"./**/*.(ts|css|scss|md)\"",
|
70
|
-
"lint:prettier:fix": "prettier --write \"./**/*.(ts|css|scss|md)\"",
|
71
|
-
"lint:eslint": "eslint -c .eslintrc.cjs --ext .ts .",
|
72
|
-
"lint:eslint:fix": "eslint -c .eslintrc.cjs --fix --ext .ts .",
|
73
|
-
"test": "run-s lint:eslint lint:prettier test:vitest",
|
74
|
-
"test:vitest": "vitest",
|
75
|
-
"coverage": "vitest run --coverage",
|
76
|
-
"release": "run-s test release:*",
|
77
|
-
"release:standard-version": "standard-version",
|
78
|
-
"release:publish": "git push --follow-tags origin main && npm publish"
|
38
|
+
"tailwindcss": "4.0.0-beta.2"
|
79
39
|
}
|
80
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.
|
package/README.md
DELETED
@@ -1,109 +0,0 @@
|
|
1
|
-
<p align="center">
|
2
|
-
<picture>
|
3
|
-
<source media="(prefers-color-scheme: dark)" srcset="https://github.com/shuriken-ui/.github/assets/86636408/278e3026-1997-4e01-9457-20772adbce31">
|
4
|
-
<source media="(prefers-color-scheme: light)" srcset="https://github.com/shuriken-ui/.github/assets/86636408/06f9d8e2-38aa-45b2-b91e-1c891a20e271">
|
5
|
-
<img alt="Shuriken UI logo" src="https://github.com/shuriken-ui/.github/assets/86636408/06f9d8e2-38aa-45b2-b91e-1c891a20e271">
|
6
|
-
</picture>
|
7
|
-
</p>
|
8
|
-
|
9
|
-
|
10
|
-
<p align="center">
|
11
|
-
<a href="https://cssninja.io" title="Our official website">by <strong>cssninja.io</strong></a>
|
12
|
-
</p>
|
13
|
-
|
14
|
-
---
|
15
|
-
|
16
|
-
## Shuriken UI - Tailwind CSS
|
17
|
-
|
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
|
-
|
20
|
-
This package contains the Tailwind CSS preset, components, and shared utils like custom colors used in Shuriken UI.
|
21
|
-
|
22
|
-
## Installation
|
23
|
-
|
24
|
-
```bash
|
25
|
-
pnpm install -D @shuriken-ui/tailwind
|
26
|
-
```
|
27
|
-
|
28
|
-
## Usage
|
29
|
-
|
30
|
-
The simplest way to register Shuriken UI is to use `withShurikenUI` helper function.
|
31
|
-
|
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.
|
44
|
-
|
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
|
55
|
-
```
|
56
|
-
|
57
|
-
|
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
|
94
|
-
|
95
|
-
Shuriken UI is fully customizable. You can override components by using the `theme` option.
|
96
|
-
|
97
|
-
```ts
|
98
|
-
export default withShurikenUI({
|
99
|
-
theme: {
|
100
|
-
extend: {
|
101
|
-
nui: {
|
102
|
-
// your customizations
|
103
|
-
},
|
104
|
-
},
|
105
|
-
},
|
106
|
-
})
|
107
|
-
```
|
108
|
-
|
109
|
-
> note: Documentation is coming soon!
|
package/src/css/placeload.css
DELETED
@@ -1,13 +0,0 @@
|
|
1
|
-
/* generated using "pnpm jiti scripts/generate-utilities.ts" */
|
2
|
-
/* @utility nui-placeload */
|
3
|
-
|
4
|
-
@utility nui-placeload {
|
5
|
-
position: relative;
|
6
|
-
background: linear-gradient( to right, rgb(0 0 0 / 7%) 8% ,rgb(0 0 0 / 15%) 18%, rgb(0 0 0 / 7%) 33%);
|
7
|
-
background-size: 1200px 104px;
|
8
|
-
}
|
9
|
-
.dark .nui-placeload {
|
10
|
-
position: relative;
|
11
|
-
background: linear-gradient(to right, rgb(255 255 255 / 15%) 8%, rgb(255 255 255 / 24%) 18%, rgb(255 255 255 / 15%) 33%);
|
12
|
-
background-size: 1200px 104px;
|
13
|
-
}
|
package/src/css/text.css
DELETED
@@ -1,78 +0,0 @@
|
|
1
|
-
/* generated using "pnpm jiti scripts/generate-utilities.ts" */
|
2
|
-
/* @utility nui-text */
|
3
|
-
|
4
|
-
@utility nui-text {
|
5
|
-
@apply font-sans;
|
6
|
-
}
|
7
|
-
@utility nui-content-xs {
|
8
|
-
@apply text-xs;
|
9
|
-
}
|
10
|
-
@utility nui-content-sm {
|
11
|
-
@apply text-sm;
|
12
|
-
}
|
13
|
-
@utility nui-content-md {
|
14
|
-
@apply text-base;
|
15
|
-
}
|
16
|
-
@utility nui-content-lg {
|
17
|
-
@apply text-lg;
|
18
|
-
}
|
19
|
-
@utility nui-content-xl {
|
20
|
-
@apply text-xl;
|
21
|
-
}
|
22
|
-
@utility nui-content-2xl {
|
23
|
-
@apply text-2xl;
|
24
|
-
}
|
25
|
-
@utility nui-content-3xl {
|
26
|
-
@apply text-3xl;
|
27
|
-
}
|
28
|
-
@utility nui-content-4xl {
|
29
|
-
@apply text-4xl;
|
30
|
-
}
|
31
|
-
@utility nui-content-5xl {
|
32
|
-
@apply text-5xl;
|
33
|
-
}
|
34
|
-
@utility nui-content-6xl {
|
35
|
-
@apply text-6xl;
|
36
|
-
}
|
37
|
-
@utility nui-content-7xl {
|
38
|
-
@apply text-7xl;
|
39
|
-
}
|
40
|
-
@utility nui-content-8xl {
|
41
|
-
@apply text-8xl;
|
42
|
-
}
|
43
|
-
@utility nui-content-9xl {
|
44
|
-
@apply text-9xl;
|
45
|
-
}
|
46
|
-
@utility nui-weight-light {
|
47
|
-
@apply font-light;
|
48
|
-
}
|
49
|
-
@utility nui-weight-normal {
|
50
|
-
@apply font-normal;
|
51
|
-
}
|
52
|
-
@utility nui-weight-medium {
|
53
|
-
@apply font-medium;
|
54
|
-
}
|
55
|
-
@utility nui-weight-semibold {
|
56
|
-
@apply font-semibold;
|
57
|
-
}
|
58
|
-
@utility nui-weight-bold {
|
59
|
-
@apply font-bold;
|
60
|
-
}
|
61
|
-
@utility nui-weight-extrabold {
|
62
|
-
@apply font-extrabold;
|
63
|
-
}
|
64
|
-
@utility nui-lead-none {
|
65
|
-
@apply leading-none;
|
66
|
-
}
|
67
|
-
@utility nui-lead-normal {
|
68
|
-
@apply leading-normal;
|
69
|
-
}
|
70
|
-
@utility nui-lead-tight {
|
71
|
-
@apply leading-tight;
|
72
|
-
}
|
73
|
-
@utility nui-lead-snug {
|
74
|
-
@apply leading-snug;
|
75
|
-
}
|
76
|
-
@utility nui-lead-loose {
|
77
|
-
@apply leading-loose;
|
78
|
-
}
|