@papillonbits/css 0.1.0 → 0.4.0
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/build/primer/color-modes/index.scss +10 -0
- package/build/primer/color-modes/native.scss +22 -0
- package/build/primer/color-modes/themes/dark.scss +6 -0
- package/build/primer/color-modes/themes/dark_colorblind.scss +6 -0
- package/build/primer/color-modes/themes/dark_dimmed.scss +6 -0
- package/build/primer/color-modes/themes/dark_high_contrast.scss +6 -0
- package/build/primer/color-modes/themes/light.scss +6 -0
- package/build/primer/color-modes/themes/light_colorblind.scss +6 -0
- package/build/primer/color-modes/themes/light_high_contrast.scss +6 -0
- package/package.json +2 -2
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
// All themes
|
|
2
|
+
|
|
3
|
+
@import './themes/light.scss';
|
|
4
|
+
@import './themes/light_colorblind.scss';
|
|
5
|
+
@import './themes/light_high_contrast.scss';
|
|
6
|
+
@import './themes/dark.scss';
|
|
7
|
+
@import './themes/dark_dimmed.scss';
|
|
8
|
+
@import './themes/dark_high_contrast.scss';
|
|
9
|
+
@import './themes/dark_colorblind.scss';
|
|
10
|
+
@import './native.scss';
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
// color-scheme
|
|
2
|
+
// Enables color modes for native elements
|
|
3
|
+
|
|
4
|
+
@include color-mode(light) { color-scheme: light; }
|
|
5
|
+
|
|
6
|
+
@include color-mode(dark) { color-scheme: dark; }
|
|
7
|
+
|
|
8
|
+
[data-color-mode] {
|
|
9
|
+
color: var(--color-fg-default);
|
|
10
|
+
background-color: var(--color-canvas-default);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
// Windows High Contrast mode
|
|
14
|
+
|
|
15
|
+
// Improves focus state for various components when Windows High Contrast mode is enabled
|
|
16
|
+
// stylelint-disable selector-max-type
|
|
17
|
+
@media (forced-colors: active) {
|
|
18
|
+
body {
|
|
19
|
+
--color-accent-emphasis: Highlight;
|
|
20
|
+
--color-fg-on-emphasis: LinkText;
|
|
21
|
+
}
|
|
22
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@papillonbits/css",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"description": "Papillon Bits CSS",
|
|
5
5
|
"homepage": "https://github.com/papillonbits/papillonbits/tree/master/packages/css",
|
|
6
6
|
"repository": {
|
|
@@ -23,5 +23,5 @@
|
|
|
23
23
|
"build-acceptance": "npm run build",
|
|
24
24
|
"build-release": "npm run build"
|
|
25
25
|
},
|
|
26
|
-
"gitHead": "
|
|
26
|
+
"gitHead": "f169f2b2002fd1767495c4779e9a28ca5dd53f8c"
|
|
27
27
|
}
|