Skip to content

Commit aac3830

Browse files
committed
because of you, webpack
1 parent 013d0a5 commit aac3830

File tree

3 files changed

+65
-84
lines changed

3 files changed

+65
-84
lines changed

assets/mantle.css

+43-35
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
@import url("https://cdn.ngrok.com/static/fonts/fonts.css");
22

3+
@tailwind base;
4+
@tailwind components;
5+
@tailwind utilities;
6+
37
/**
48
* provide an a11y escape hatch for those that prefer less motion
59
*/
@@ -1105,19 +1109,6 @@
11051109
--button: var(--white);
11061110
}
11071111

1108-
.light {
1109-
color-scheme: light;
1110-
}
1111-
.dark {
1112-
color-scheme: dark;
1113-
}
1114-
.light-high-contrast {
1115-
color-scheme: light;
1116-
}
1117-
.dark-high-contrast {
1118-
color-scheme: dark;
1119-
}
1120-
11211112
/**
11221113
* prism.js default theme for JavaScript, CSS and HTML
11231114
* Based on dabblet (http://dabblet.com)
@@ -1184,32 +1175,49 @@
11841175
font-style: italic;
11851176
}
11861177

1187-
.scrollbar::-webkit-scrollbar {
1188-
width: 0.5rem;
1189-
height: 0.5rem;
1190-
background-color: transparent;
1178+
@layer base {
1179+
body {
1180+
@apply bg-white text-gray-900;
1181+
}
11911182
}
11921183

1193-
.scrollbar::-webkit-scrollbar-track {
1194-
border-radius: 0.5rem;
1195-
background-color: transparent;
1196-
}
1184+
@layer utilities {
1185+
.light {
1186+
color-scheme: light;
1187+
}
1188+
.dark {
1189+
color-scheme: dark;
1190+
}
1191+
.light-high-contrast {
1192+
color-scheme: light;
1193+
}
1194+
.dark-high-contrast {
1195+
color-scheme: dark;
1196+
}
11971197

1198-
.scrollbar::-webkit-scrollbar-thumb {
1199-
border-radius: 0.5rem;
1200-
background-color: hsl(var(--gray-800) / 0.5);
1201-
}
1198+
.scrollbar::-webkit-scrollbar {
1199+
width: 0.5rem;
1200+
height: 0.5rem;
1201+
background-color: transparent;
1202+
}
12021203

1203-
.scrollbar::-webkit-scrollbar-corner {
1204-
background-color: transparent;
1205-
border-color: transparent;
1206-
}
1204+
.scrollbar::-webkit-scrollbar-track {
1205+
border-radius: 0.5rem;
1206+
background-color: transparent;
1207+
}
12071208

1208-
.scrollbar {
1209-
scrollbar-color: hsl(var(--gray-600) / 0.5) transparent;
1210-
scrollbar-width: thin;
1211-
}
1209+
.scrollbar::-webkit-scrollbar-thumb {
1210+
border-radius: 0.5rem;
1211+
background-color: hsl(var(--gray-800) / 0.5);
1212+
}
12121213

1213-
body {
1214-
@apply bg-white text-gray-900;
1214+
.scrollbar::-webkit-scrollbar-corner {
1215+
background-color: transparent;
1216+
border-color: transparent;
1217+
}
1218+
1219+
.scrollbar {
1220+
scrollbar-color: hsl(var(--gray-600) / 0.5) transparent;
1221+
scrollbar-width: thin;
1222+
}
12151223
}

package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
"description": "mantle is ngrok's UI library and design system.",
44
"author": "ngrok",
55
"license": "MIT",
6-
"version": "0.0.6",
6+
"version": "0.0.7",
77
"homepage": "https://mantle.ngrok.com",
88
"repository": {
99
"type": "git",
1010
"url": "https://github.com/ngrok-oss/mantle"
1111
},
12-
"sideEffects": false,
12+
"sideEffects": ["*.css"],
1313
"type": "module",
1414
"browserslist": [
1515
"last 2 years, not dead, > 0.2%"
@@ -80,7 +80,7 @@
8080
"@storybook/react": "7.6.12",
8181
"@storybook/react-vite": "7.6.12",
8282
"@storybook/testing-library": "0.2.2",
83-
"@testing-library/react": "14.2.0",
83+
"@testing-library/react": "14.2.1",
8484
"@testing-library/user-event": "14.5.2",
8585
"@types/node": "20.11.16",
8686
"@types/prismjs": "1.26.3",
@@ -100,7 +100,7 @@
100100
"eslint-plugin-react-hooks": "4.6.0",
101101
"eslint-plugin-storybook": "0.6.15",
102102
"fast-glob": "3.3.2",
103-
"jsdom": "23.2.0",
103+
"jsdom": "24.0.0",
104104
"parcel": "2.11.0",
105105
"postcss": "8.4.33",
106106
"prettier": "3.2.4",

pnpm-lock.yaml

+18-45
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)