@wwtdev/bsds-css 0.0.3
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/README.md +7 -0
- package/dist/components/_badge.scss +62 -0
- package/dist/components/_buttons.scss +192 -0
- package/dist/components/_form-elements.scss +274 -0
- package/dist/components/_pills.scss +206 -0
- package/dist/components/_profiles.scss +99 -0
- package/dist/components/_tables.scss +84 -0
- package/dist/components/badge.css +58 -0
- package/dist/components/buttons.css +188 -0
- package/dist/components/form-elements.css +270 -0
- package/dist/components/pills.css +202 -0
- package/dist/components/profiles.css +95 -0
- package/dist/components/tables.css +80 -0
- package/dist/wwt-bsds-preset.js +185 -0
- package/dist/wwt-bsds-wc-base.css +753 -0
- package/dist/wwt-bsds.css +1775 -0
- package/dist/wwt-bsds.min.css +1 -0
- package/package.json +59 -0
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
const defaultTheme = require('tailwindcss/defaultTheme')
|
|
2
|
+
|
|
3
|
+
module.exports = {
|
|
4
|
+
darkMode: "class",
|
|
5
|
+
theme: {
|
|
6
|
+
backgroundColor: ({ theme }) => theme("colors"),
|
|
7
|
+
colors: {
|
|
8
|
+
transparent: "transparent",
|
|
9
|
+
white: "#FFFFFF",
|
|
10
|
+
black: "#0A0B19",
|
|
11
|
+
blue: {
|
|
12
|
+
10: "rgba(0, 134, 234, 0.1)",
|
|
13
|
+
100: "#99CFF7",
|
|
14
|
+
200: "#66B6F2",
|
|
15
|
+
300: "#339EEE",
|
|
16
|
+
400: "#0086EA",
|
|
17
|
+
500: "#006DC7"
|
|
18
|
+
},
|
|
19
|
+
red: {
|
|
20
|
+
10: "rgba(238, 40, 42, 0.1)",
|
|
21
|
+
100: "#F8A9AA",
|
|
22
|
+
200: "#F57E7F",
|
|
23
|
+
300: "#F15355",
|
|
24
|
+
400: "#EE282A",
|
|
25
|
+
500: "#D91214"
|
|
26
|
+
},
|
|
27
|
+
plum: {
|
|
28
|
+
10: "rgba(28, 0, 135, 0.1)",
|
|
29
|
+
100: "#A499CF",
|
|
30
|
+
200: "#7766B7",
|
|
31
|
+
300: "#49339F",
|
|
32
|
+
400: "#1C0087"
|
|
33
|
+
},
|
|
34
|
+
royal: {
|
|
35
|
+
100: "#C5CCEB",
|
|
36
|
+
200: "#7585D1",
|
|
37
|
+
300: "#5365C4",
|
|
38
|
+
400: "#162FB4"
|
|
39
|
+
},
|
|
40
|
+
violet: {
|
|
41
|
+
100: "#CBC0DA",
|
|
42
|
+
200: "#9983B6",
|
|
43
|
+
300: "#634291",
|
|
44
|
+
400: "#330072"
|
|
45
|
+
},
|
|
46
|
+
navy: {
|
|
47
|
+
100: "#C6C6D1",
|
|
48
|
+
200: "#8D8EA1",
|
|
49
|
+
300: "#555775",
|
|
50
|
+
400: "#1D1E48",
|
|
51
|
+
500: "#131431"
|
|
52
|
+
},
|
|
53
|
+
orange: {
|
|
54
|
+
10: "rgba(250, 70, 22, 0.1)",
|
|
55
|
+
100: "#FED1C5",
|
|
56
|
+
200: "#FDA58D",
|
|
57
|
+
300: "#FC7755",
|
|
58
|
+
400: "#FA4616",
|
|
59
|
+
warning: "#EA6712"
|
|
60
|
+
},
|
|
61
|
+
pink: {
|
|
62
|
+
100: "#F6CBE0",
|
|
63
|
+
200: "#EB7EAF",
|
|
64
|
+
300: "#E45E9B",
|
|
65
|
+
400: "#E31C79",
|
|
66
|
+
500: "#D11A6F"
|
|
67
|
+
},
|
|
68
|
+
purple: {
|
|
69
|
+
10: "rgba(130, 18, 196, 0.09)",
|
|
70
|
+
100: "#E0C5EF",
|
|
71
|
+
200: "#BF8ADF",
|
|
72
|
+
300: "#A154D0",
|
|
73
|
+
400: "#8212C4"
|
|
74
|
+
},
|
|
75
|
+
gray: {
|
|
76
|
+
100: "#F0F0FA",
|
|
77
|
+
200: "#C9CAD9",
|
|
78
|
+
300: "#A3A4B7",
|
|
79
|
+
400: "#4E4F5F",
|
|
80
|
+
500: "#292940"
|
|
81
|
+
},
|
|
82
|
+
"gradient-dark":
|
|
83
|
+
"linear-gradient(90deg, #1C0087 0%, #EE282A 35%, #FFFFFF 50%, #0086EA 65%, #1C0087 100%)",
|
|
84
|
+
"gradient-light":
|
|
85
|
+
"linear-gradient(90deg, #1C0087 0%, #EE282A 35%, #FFFFFF 50%, #0086EA 65%, #1C0087 100%)",
|
|
86
|
+
"gradient-line":
|
|
87
|
+
"linear-gradient(90deg, #EE282A 0%, #1C0087 50%, #0086EA 100%)"
|
|
88
|
+
},
|
|
89
|
+
fontFamily: {
|
|
90
|
+
sans: [
|
|
91
|
+
"Roobert",
|
|
92
|
+
"system-ui",
|
|
93
|
+
"BlinkMacSystemFont",
|
|
94
|
+
"-apple-system",
|
|
95
|
+
"Segoe UI",
|
|
96
|
+
"Roboto",
|
|
97
|
+
"Oxygen",
|
|
98
|
+
"Ubuntu",
|
|
99
|
+
"Cantarell",
|
|
100
|
+
'"Fira Sans"',
|
|
101
|
+
'"Droid Sans"',
|
|
102
|
+
'"Helvetica Neue"',
|
|
103
|
+
"sans-serif"
|
|
104
|
+
]
|
|
105
|
+
},
|
|
106
|
+
fontSize: {
|
|
107
|
+
xs: ".75rem", // 12px
|
|
108
|
+
sm: ".875rem", // 14px
|
|
109
|
+
base: "1rem", // 16px
|
|
110
|
+
md: "1.125rem", // 18px
|
|
111
|
+
lg: "1.25rem", // 20px
|
|
112
|
+
xl: "1.5rem", // 24px
|
|
113
|
+
"2xl": "2rem", // 32px
|
|
114
|
+
"3xl": "2.25rem", // 36px
|
|
115
|
+
"4xl": "3rem", // 48px
|
|
116
|
+
// @link https://utopia.fyi/type/calculator/?c=400,16,1.125,1200,16,1.2,6,2,&s=0.75|0.5|0.25,1.5|2|3|4|6,s-xl
|
|
117
|
+
// We're using utopia as a staring point but adjusting to our scale with the same math functions
|
|
118
|
+
"f-xs": "clamp(0.69rem, calc(0.84rem + -0.19vw), 0.79rem)",
|
|
119
|
+
"f-sm": "clamp(0.83rem, calc(0.92rem + -0.11vw), 0.89rem)",
|
|
120
|
+
"f-base": "clamp(1.00rem, calc(1.00rem + 0.00vw), 1.00rem)",
|
|
121
|
+
"f-md": "clamp(1.00rem, calc(0.94rem + 0.25vw), 1.125rem)",
|
|
122
|
+
"f-lg": "clamp(1.125rem, calc(1.06rem + 0.25vw), 1.25rem)",
|
|
123
|
+
"f-xl": "clamp(1.25rem, calc(1.13rem + 0.50vw), 1.50rem)",
|
|
124
|
+
"f-2xl": "clamp(1.50rem, calc(1.25rem + 1.00vw), 2.00rem)",
|
|
125
|
+
"f-3xl": "clamp(2.00rem, calc(1.88rem + 0.50vw), 2.25rem)",
|
|
126
|
+
"f-4xl": "clamp(2.25rem, calc(1.88rem + 1.50vw), 3.00rem)"
|
|
127
|
+
},
|
|
128
|
+
extend: {
|
|
129
|
+
borderRadius: {
|
|
130
|
+
md: ".25rem"
|
|
131
|
+
},
|
|
132
|
+
borderWidth: {
|
|
133
|
+
1: "1px",
|
|
134
|
+
6: "6px"
|
|
135
|
+
},
|
|
136
|
+
boxShadow: {
|
|
137
|
+
DEFAULT:
|
|
138
|
+
"-4px 4px 12px rgba(0,0,0,0.06), -8px 8px 16px rgba(28,0,135,0.2)",
|
|
139
|
+
contentLow:
|
|
140
|
+
"-4px 4px 12px rgba(0,0,0,0.06), -8px 8px 16px rgba(28,0,135,0.2)",
|
|
141
|
+
contentLowCenter:
|
|
142
|
+
"0px 0px 12px rgba(0,0,0,0.06), 0px 0px 16px rgba(28,0,135,0.2)",
|
|
143
|
+
contentMedium:
|
|
144
|
+
"-8px 8px 24px rgba(0,0,0,0.06), -16px 16px 32px rgba(28,0,135,0.2)",
|
|
145
|
+
contentHigh:
|
|
146
|
+
"0px 16px 48px rgba(0,0,0,0.06), 0px 32px 64px rgba(28,0,135,0.2)",
|
|
147
|
+
drawerLeft:
|
|
148
|
+
"-12px 12px 24px rgba(0,0,0,0.06), -16px 16px 32px rgba(28,0,135,0.2)",
|
|
149
|
+
drawerRight:
|
|
150
|
+
"-12px 12px 24px rgba(0,0,0,0.06), 16px 16px 32px rgba(28,0,135,0.2)",
|
|
151
|
+
profilePhoto: "inset 0px 0px 0.5em rgba(28,0,135,0.25)"
|
|
152
|
+
},
|
|
153
|
+
lineHeight: {
|
|
154
|
+
sm: "115%",
|
|
155
|
+
base: "150%"
|
|
156
|
+
},
|
|
157
|
+
spacing: {
|
|
158
|
+
// referenced so we can generate css properties in tokens.css
|
|
159
|
+
...defaultTheme.spacing,
|
|
160
|
+
// @link https://utopia.fyi/space/calculator?c=400,16,1.125,1200,16,1.2,6,2,&s=0.75|0.5|0.25,1.5|2|3|4|6,s-l|m-xl|xl-3xl
|
|
161
|
+
// for fluid sizing we are only using the one up pairs and custom pairs - base sizing is static
|
|
162
|
+
"f-1": "clamp(0.25rem, calc(0.13rem + 0.50vw), 0.50rem)",
|
|
163
|
+
"f-2": "clamp(0.50rem, calc(0.38rem + 0.50vw), 0.75rem)",
|
|
164
|
+
"f-3": "clamp(0.75rem, calc(0.63rem + 0.50vw), 1.00rem)",
|
|
165
|
+
"f-4": "clamp(1.00rem, calc(0.75rem + 1.00vw), 1.50rem)",
|
|
166
|
+
"f-6": "clamp(1.50rem, calc(1.25rem + 1.00vw), 2.00rem)",
|
|
167
|
+
"f-8": "clamp(2.00rem, calc(1.50rem + 2.00vw), 3.00rem)",
|
|
168
|
+
"f-12": "clamp(4.00rem, calc(3.00rem + 4.00vw), 6.00rem)",
|
|
169
|
+
"f-16": "clamp(4.00rem, calc(3.00rem + 4.00vw), 6.00rem)",
|
|
170
|
+
"f-24": "clamp(6.00rem, calc(5.00rem + 4.00vw), 8.00rem)",
|
|
171
|
+
"f-4to8": "clamp(1.00rem, calc(0.50rem + 2.00vw), 2.00rem)", // small to large
|
|
172
|
+
"f-6to12": "clamp(1.50rem, calc(0.75rem + 3.00vw), 3.00rem)", // medium to XL
|
|
173
|
+
"f-12to24": "clamp(3.00rem, calc(1.50rem + 6.00vw), 6.00rem)" // XL to 3XL
|
|
174
|
+
},
|
|
175
|
+
maxWidth: {
|
|
176
|
+
content: "72rem"
|
|
177
|
+
},
|
|
178
|
+
zIndex: {
|
|
179
|
+
"-1": "-1",
|
|
180
|
+
"100": "100"
|
|
181
|
+
},
|
|
182
|
+
}
|
|
183
|
+
},
|
|
184
|
+
plugins: []
|
|
185
|
+
};
|