@reshape-biotech/design-system 0.0.20 → 0.0.22
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.
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
// Used to safelist classnames so we can add styles dynamic.
|
|
2
|
+
// This should include all the values used in the design system.
|
|
3
|
+
// Read more here: https://daisyui.com/blog/most-common-mistake-when-using-tailwind-css/
|
|
4
|
+
|
|
5
|
+
// Text colors
|
|
6
|
+
text-primary
|
|
7
|
+
text-primary-inverse
|
|
8
|
+
text-secondary
|
|
9
|
+
text-secondary-inverse
|
|
10
|
+
text-tertiary
|
|
11
|
+
text-tertiary-inverse
|
|
12
|
+
text-accent
|
|
13
|
+
text-success
|
|
14
|
+
text-warning
|
|
15
|
+
text-danger
|
|
16
|
+
|
|
17
|
+
// Icons
|
|
18
|
+
text-icon-primary
|
|
19
|
+
text-icon-primary-inverse
|
|
20
|
+
text-icon-secondary
|
|
21
|
+
text-icon-tertiary
|
|
22
|
+
text-icon-accent
|
|
23
|
+
text-icon-success
|
|
24
|
+
text-icon-warning
|
|
25
|
+
text-icon-danger
|
|
26
|
+
text-icon-blue
|
|
27
|
+
text-icon-orange
|
|
28
|
+
text-icon-sky
|
|
29
|
+
|
|
30
|
+
// Background colors
|
|
31
|
+
bg-surface
|
|
32
|
+
bg-surface-secondary
|
|
33
|
+
bg-base
|
|
34
|
+
bg-base-inverse
|
|
35
|
+
bg-neutral
|
|
36
|
+
bg-neutral-hover
|
|
37
|
+
bg-neutral-darker
|
|
38
|
+
bg-neutral-darker-hover
|
|
39
|
+
bg-neutral-inverse
|
|
40
|
+
bg-neutral-inverse-hover
|
|
41
|
+
bg-accent
|
|
42
|
+
bg-accent-hover
|
|
43
|
+
bg-accent-inverse
|
|
44
|
+
bg-accent-inverse-hover
|
|
45
|
+
bg-success
|
|
46
|
+
bg-success-hover
|
|
47
|
+
bg-success-inverse
|
|
48
|
+
bg-success-inverse-hover
|
|
49
|
+
bg-warning
|
|
50
|
+
bg-warning-hover
|
|
51
|
+
bg-warning-inverse
|
|
52
|
+
bg-warning-inverse-hover
|
|
53
|
+
bg-danger
|
|
54
|
+
bg-danger-hover
|
|
55
|
+
bg-danger-inverse
|
|
56
|
+
bg-danger-inverse-hover
|
|
57
|
+
bg-blue
|
|
58
|
+
bg-blue-hover
|
|
59
|
+
bg-orange
|
|
60
|
+
bg-orange-hover
|
|
61
|
+
bg-orange-inverse
|
|
62
|
+
bg-orange-inverse-hover
|
|
63
|
+
bg-sky
|
|
64
|
+
bg-sky-hover
|
|
65
|
+
bg-sky-inverse
|
|
66
|
+
bg-sky-inverse-hover
|
|
67
|
+
|
|
68
|
+
// Borders
|
|
69
|
+
border-static
|
|
70
|
+
border-interactive
|
|
71
|
+
border-hover
|
|
72
|
+
border-focus
|
|
73
|
+
border-danger
|
|
74
|
+
|
|
75
|
+
// Shadows
|
|
76
|
+
shadow
|
|
77
|
+
shadow-none
|
|
78
|
+
shadow-field
|
|
79
|
+
shadow-nav
|
|
80
|
+
shadow-calendar
|
|
81
|
+
shadow-container
|
|
82
|
+
shadow-panel
|
|
83
|
+
shadow-outline
|
|
84
|
+
shadow-focus
|
|
85
|
+
|
|
86
|
+
// Text Sizes
|
|
87
|
+
text-xxs
|
|
88
|
+
text-xs
|
|
89
|
+
text-sm
|
|
90
|
+
text-md
|
|
91
|
+
text-lg
|
|
92
|
+
text-xl
|
|
93
|
+
text-2xl
|
|
94
|
+
text-3xl
|
|
95
|
+
text-4xl
|
|
96
|
+
|
|
97
|
+
// Fonts
|
|
98
|
+
font-medium
|
|
99
|
+
font-semibold
|
|
100
|
+
font-bold
|
|
101
|
+
|
|
102
|
+
// Default tailwind classes. We need these to preload them, in case we use them in the design system. Only add classes that are used in the design system.
|
|
103
|
+
// Component custom styles
|
|
104
|
+
// badge style classnames
|
|
105
|
+
badge-neutral
|
|
106
|
+
badge-success
|
|
107
|
+
badge-warning
|
|
108
|
+
badge-progress
|
|
109
|
+
badge-error
|
|
110
|
+
badge-md
|
|
111
|
+
badge-sm
|
|
112
|
+
|
|
113
|
+
// Tooltips
|
|
114
|
+
tooltip-top
|
|
115
|
+
tooltip-right
|
|
116
|
+
tooltip-bottom
|
|
117
|
+
tooltip-left
|
|
118
|
+
|
|
119
|
+
// Sizes
|
|
120
|
+
h-5
|
|
121
|
+
w-5
|
|
122
|
+
min-w-5
|
|
123
|
+
h-7
|
|
124
|
+
w-7
|
|
125
|
+
min-w-7
|
|
126
|
+
|
|
127
|
+
// Display values
|
|
128
|
+
flex
|
|
129
|
+
items-center
|
|
130
|
+
justify-center
|
|
131
|
+
flex-row
|
|
132
|
+
flex-col
|
|
133
|
+
px-2
|
|
134
|
+
py-1
|
|
135
|
+
|
|
136
|
+
// Rounded values
|
|
137
|
+
rounded-full
|
|
138
|
+
rounded
|
|
139
|
+
|
|
140
|
+
// Tables
|
|
141
|
+
table-fixed
|
|
142
|
+
table-auto
|
package/dist/tailwind.preset.js
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
/** @type {import('tailwindcss').Config}*/
|
|
2
1
|
import daisyui from 'daisyui';
|
|
3
2
|
import typography from '@tailwindcss/typography';
|
|
4
3
|
import containerQueries from '@tailwindcss/container-queries';
|
|
5
4
|
import { backgroundColor, borderColor, boxShadow, colors, textColor } from './tokens.js';
|
|
6
5
|
const config = {
|
|
7
|
-
|
|
6
|
+
safelist: ['tailwind-safelist.txt'],
|
|
8
7
|
theme: {
|
|
9
8
|
extend: {
|
|
10
9
|
colors,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reshape-biotech/design-system",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.22",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"dev": "vite dev",
|
|
6
6
|
"build": "vite build && npm run package",
|
|
@@ -36,7 +36,8 @@
|
|
|
36
36
|
},
|
|
37
37
|
"./tokens": "./dist/tokens.js",
|
|
38
38
|
"./styles": "./dist/app.css",
|
|
39
|
-
"./tailwind": "./dist/tailwind.preset.js"
|
|
39
|
+
"./tailwind": "./dist/tailwind.preset.js",
|
|
40
|
+
"./tailwind-safelist": "./dist/tailwind-safelist.txt"
|
|
40
41
|
},
|
|
41
42
|
"peerDependencies": {
|
|
42
43
|
"svelte": "^5.0.0",
|
|
@@ -44,15 +45,7 @@
|
|
|
44
45
|
"daisyui": "^4.10.5"
|
|
45
46
|
},
|
|
46
47
|
"devDependencies": {
|
|
47
|
-
"@chromatic-com/storybook": "^3.2.2",
|
|
48
48
|
"@eslint/compat": "^1.2.3",
|
|
49
|
-
"@storybook/addon-essentials": "^8.4.7",
|
|
50
|
-
"@storybook/addon-interactions": "^8.4.7",
|
|
51
|
-
"@storybook/addon-svelte-csf": "^5.0.0-next.11",
|
|
52
|
-
"@storybook/blocks": "^8.4.7",
|
|
53
|
-
"@storybook/svelte": "^8.4.7",
|
|
54
|
-
"@storybook/sveltekit": "^8.4.7",
|
|
55
|
-
"@storybook/test": "^8.4.7",
|
|
56
49
|
"@sveltejs/adapter-vercel": "^5.5.0",
|
|
57
50
|
"@sveltejs/kit": "^2.9.0",
|
|
58
51
|
"@sveltejs/package": "^2.0.0",
|
|
@@ -71,7 +64,6 @@
|
|
|
71
64
|
"prettier-plugin-svelte": "^3.2.6",
|
|
72
65
|
"prettier-plugin-tailwindcss": "^0.6.5",
|
|
73
66
|
"publint": "^0.2.0",
|
|
74
|
-
"storybook": "^8.4.7",
|
|
75
67
|
"svelte": "^5.0.0",
|
|
76
68
|
"svelte-check": "^4.0.0",
|
|
77
69
|
"tailwindcss": "^3.4.9",
|