@deepgram/styles 0.0.1
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/LICENSE +22 -0
- package/README.md +147 -0
- package/dist/deepgram.css +1596 -0
- package/dist/deepgram.expanded.css +803 -0
- package/lib/deepgram.css +772 -0
- package/package.json +60 -0
- package/postcss.config.js +7 -0
- package/tailwind.config.js +164 -0
package/package.json
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@deepgram/styles",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"description": "Tailwind-based design system and styles library for Deepgram design system and demos",
|
|
5
|
+
"author": "Deepgram",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "https://github.com/deepgram/starter-uis.git",
|
|
10
|
+
"directory": "libs/styles"
|
|
11
|
+
},
|
|
12
|
+
"keywords": [
|
|
13
|
+
"deepgram",
|
|
14
|
+
"design-system",
|
|
15
|
+
"styles",
|
|
16
|
+
"css",
|
|
17
|
+
"tailwind",
|
|
18
|
+
"tailwindcss",
|
|
19
|
+
"ui-components",
|
|
20
|
+
"frontend"
|
|
21
|
+
],
|
|
22
|
+
"main": "dist/deepgram.css",
|
|
23
|
+
"style": "dist/deepgram.css",
|
|
24
|
+
"files": [
|
|
25
|
+
"dist/",
|
|
26
|
+
"lib/",
|
|
27
|
+
"tailwind.config.js",
|
|
28
|
+
"postcss.config.js",
|
|
29
|
+
"README.md",
|
|
30
|
+
"LICENSE"
|
|
31
|
+
],
|
|
32
|
+
"exports": {
|
|
33
|
+
".": {
|
|
34
|
+
"default": "./dist/deepgram.css"
|
|
35
|
+
},
|
|
36
|
+
"./dist/deepgram.css": {
|
|
37
|
+
"default": "./dist/deepgram.css"
|
|
38
|
+
},
|
|
39
|
+
"./expanded": {
|
|
40
|
+
"default": "./dist/deepgram.expanded.css"
|
|
41
|
+
},
|
|
42
|
+
"./source": {
|
|
43
|
+
"default": "./lib/deepgram.css"
|
|
44
|
+
},
|
|
45
|
+
"./tailwind-config": {
|
|
46
|
+
"default": "./tailwind.config.js"
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
"publishConfig": {
|
|
50
|
+
"access": "public"
|
|
51
|
+
},
|
|
52
|
+
"peerDependencies": {
|
|
53
|
+
"tailwindcss": "^3.4.0"
|
|
54
|
+
},
|
|
55
|
+
"peerDependenciesMeta": {
|
|
56
|
+
"tailwindcss": {
|
|
57
|
+
"optional": true
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
/** @type {import('tailwindcss').Config} */
|
|
2
|
+
module.exports = {
|
|
3
|
+
content: ["./lib/**/*.css", "./src/**/*.{html,js,ts,jsx,tsx}"],
|
|
4
|
+
safelist: [
|
|
5
|
+
// Include all component classes starting with 'dg-' for library consumers
|
|
6
|
+
{
|
|
7
|
+
pattern: /^dg-/,
|
|
8
|
+
},
|
|
9
|
+
],
|
|
10
|
+
darkMode: "class",
|
|
11
|
+
theme: {
|
|
12
|
+
extend: {
|
|
13
|
+
colors: {
|
|
14
|
+
// Deepgram Brand Colors (from marketing site)
|
|
15
|
+
"dg-primary": "#13ef95",
|
|
16
|
+
"dg-secondary": "#201cff",
|
|
17
|
+
|
|
18
|
+
// Background Colors
|
|
19
|
+
"dg-background": "#0b0b0c",
|
|
20
|
+
"dg-modal-background": "#1a1a1f",
|
|
21
|
+
"dg-card-background": "#1a1a1f",
|
|
22
|
+
"dg-translucent-background": "#00000080",
|
|
23
|
+
|
|
24
|
+
// Border & Text
|
|
25
|
+
"dg-border": "#2c2c33",
|
|
26
|
+
"dg-text": "#fbfbff",
|
|
27
|
+
"dg-muted": "#949498",
|
|
28
|
+
|
|
29
|
+
// Gradient colors for primary button
|
|
30
|
+
"dg-gradient-start": "#008fc1",
|
|
31
|
+
"dg-gradient-end": "#00f099",
|
|
32
|
+
},
|
|
33
|
+
fontFamily: {
|
|
34
|
+
"dg-sans": [
|
|
35
|
+
"Inter",
|
|
36
|
+
"-apple-system",
|
|
37
|
+
"BlinkMacSystemFont",
|
|
38
|
+
"Segoe UI",
|
|
39
|
+
"Roboto",
|
|
40
|
+
"Helvetica",
|
|
41
|
+
"Arial",
|
|
42
|
+
"sans-serif",
|
|
43
|
+
],
|
|
44
|
+
"dg-noto": [
|
|
45
|
+
"Noto Sans",
|
|
46
|
+
"-apple-system",
|
|
47
|
+
"BlinkMacSystemFont",
|
|
48
|
+
"Segoe UI",
|
|
49
|
+
"Roboto",
|
|
50
|
+
"Helvetica",
|
|
51
|
+
"Arial",
|
|
52
|
+
"sans-serif",
|
|
53
|
+
],
|
|
54
|
+
"dg-mono": ["Fira Code", "Monaco", "Consolas", "Courier New", "monospace"],
|
|
55
|
+
},
|
|
56
|
+
spacing: {
|
|
57
|
+
"dg-xs": "0.25rem",
|
|
58
|
+
"dg-sm": "0.5rem",
|
|
59
|
+
"dg-md": "1rem",
|
|
60
|
+
"dg-lg": "1.5rem",
|
|
61
|
+
"dg-xl": "2rem",
|
|
62
|
+
"dg-2xl": "3rem",
|
|
63
|
+
},
|
|
64
|
+
borderRadius: {
|
|
65
|
+
"dg-sm": "4px",
|
|
66
|
+
"dg-md": "8px",
|
|
67
|
+
"dg-lg": "12px",
|
|
68
|
+
"dg-xl": "16px",
|
|
69
|
+
},
|
|
70
|
+
boxShadow: {
|
|
71
|
+
"dg-sm": "0 1px 2px 0 rgba(0, 0, 0, 0.05)",
|
|
72
|
+
"dg-md": "0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)",
|
|
73
|
+
"dg-lg": "0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)",
|
|
74
|
+
},
|
|
75
|
+
},
|
|
76
|
+
},
|
|
77
|
+
plugins: [
|
|
78
|
+
function ({ addBase, addUtilities, theme }) {
|
|
79
|
+
addBase({
|
|
80
|
+
":root": {
|
|
81
|
+
"--dg-border-width": "2px",
|
|
82
|
+
},
|
|
83
|
+
html: {
|
|
84
|
+
scrollBehavior: "smooth",
|
|
85
|
+
},
|
|
86
|
+
body: {
|
|
87
|
+
fontFamily: theme("fontFamily.dg-sans"),
|
|
88
|
+
WebkitFontSmoothing: "antialiased",
|
|
89
|
+
MozOsxFontSmoothing: "grayscale",
|
|
90
|
+
backgroundColor: theme("colors.dg-background"),
|
|
91
|
+
color: theme("colors.dg-text"),
|
|
92
|
+
lineHeight: theme("lineHeight.normal"),
|
|
93
|
+
},
|
|
94
|
+
"h1, h2, h3, h4, h5, h6": {
|
|
95
|
+
fontFamily: theme("fontFamily.dg-noto"),
|
|
96
|
+
fontWeight: theme("fontWeight.bold"),
|
|
97
|
+
},
|
|
98
|
+
h1: {
|
|
99
|
+
fontSize: theme("fontSize.4xl"),
|
|
100
|
+
"@media (min-width: 768px)": {
|
|
101
|
+
fontSize: theme("fontSize.5xl"),
|
|
102
|
+
},
|
|
103
|
+
},
|
|
104
|
+
h2: {
|
|
105
|
+
fontSize: theme("fontSize.3xl"),
|
|
106
|
+
"@media (min-width: 768px)": {
|
|
107
|
+
fontSize: theme("fontSize.4xl"),
|
|
108
|
+
},
|
|
109
|
+
},
|
|
110
|
+
h3: {
|
|
111
|
+
fontSize: theme("fontSize.2xl"),
|
|
112
|
+
"@media (min-width: 768px)": {
|
|
113
|
+
fontSize: theme("fontSize.3xl"),
|
|
114
|
+
},
|
|
115
|
+
},
|
|
116
|
+
h4: {
|
|
117
|
+
fontSize: theme("fontSize.xl"),
|
|
118
|
+
"@media (min-width: 768px)": {
|
|
119
|
+
fontSize: theme("fontSize.2xl"),
|
|
120
|
+
},
|
|
121
|
+
},
|
|
122
|
+
"code, pre": {
|
|
123
|
+
fontFamily: theme("fontFamily.dg-mono"),
|
|
124
|
+
},
|
|
125
|
+
a: {
|
|
126
|
+
color: theme("colors.dg-primary"),
|
|
127
|
+
transitionProperty: "color",
|
|
128
|
+
transitionDuration: "200ms",
|
|
129
|
+
"&:hover": {
|
|
130
|
+
opacity: "0.8",
|
|
131
|
+
},
|
|
132
|
+
},
|
|
133
|
+
});
|
|
134
|
+
|
|
135
|
+
// Add custom utilities for gradient border and glow effects
|
|
136
|
+
addUtilities({
|
|
137
|
+
".dg-gradient-border": {
|
|
138
|
+
backgroundImage:
|
|
139
|
+
"linear-gradient(rgb(0, 0, 0), rgb(0, 0, 0)), linear-gradient(90deg, rgb(0, 143, 193), rgb(0, 240, 153), rgb(0, 143, 193), rgb(0, 240, 153))",
|
|
140
|
+
backgroundOrigin: "padding-box, border-box",
|
|
141
|
+
backgroundClip: "padding-box, border-box",
|
|
142
|
+
backgroundRepeat: "no-repeat",
|
|
143
|
+
backgroundPosition: "center",
|
|
144
|
+
backgroundSize: "100% 100%",
|
|
145
|
+
backgroundColor: "rgb(0, 0, 0)",
|
|
146
|
+
},
|
|
147
|
+
".dg-bg-reset": {
|
|
148
|
+
backgroundImage: "none",
|
|
149
|
+
backgroundOrigin: "padding-box",
|
|
150
|
+
backgroundClip: "border-box",
|
|
151
|
+
backgroundRepeat: "repeat",
|
|
152
|
+
backgroundPosition: "0% 0%",
|
|
153
|
+
backgroundSize: "auto",
|
|
154
|
+
},
|
|
155
|
+
".dg-glow-cyan-green": {
|
|
156
|
+
boxShadow: "rgba(56, 237, 172, 0.2) 6px 0 15px 0, rgba(20, 154, 251, 0.2) -6px 0 15px 0",
|
|
157
|
+
},
|
|
158
|
+
".dg-shadow-subtle": {
|
|
159
|
+
boxShadow: "rgba(38, 44, 52, 0.05) 0 1px 2px",
|
|
160
|
+
},
|
|
161
|
+
});
|
|
162
|
+
},
|
|
163
|
+
],
|
|
164
|
+
};
|