Skip to content

Commit 93360b5

Browse files
authored
Merge pull request #1398 from primer/colors-v2
Add experimental color variables
2 parents 345db00 + 5ef7bd6 commit 93360b5

File tree

4 files changed

+32
-5
lines changed

4 files changed

+32
-5
lines changed

.changeset/cyan-vans-shake.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@primer/css": patch
3+
---
4+
5+
Add experimental color variables. **Warning: Do not use these color variables**

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"release": "changeset publish"
3131
},
3232
"dependencies": {
33-
"@primer/primitives": "4.3.0"
33+
"@primer/primitives": "4.3.1"
3434
},
3535
"devDependencies": {
3636
"@changesets/changelog-github": "0.4.0",

src/base/modes-v2.scss

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
// EXPERIMENTAL. DO NOT USE.
2+
3+
@import "../support/mixins/color-modes.scss";
4+
5+
@import "@primer/primitives/dist/scss/colors_v2/_light.scss";
6+
@import "@primer/primitives/dist/scss/colors_v2/_dark.scss";
7+
@import "@primer/primitives/dist/scss/colors_v2/_dark_dimmed.scss";
8+
9+
// Outputs the CSS variables
10+
// Use :root (html element) to define a default
11+
12+
@include color-mode-theme(light, true) {
13+
@include primer-colors-light;
14+
}
15+
16+
@include color-mode-theme(dark) {
17+
@include primer-colors-dark;
18+
}
19+
20+
@include color-mode-theme(dark_dimmed) {
21+
@include primer-colors-dark_dimmed;
22+
}

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -760,10 +760,10 @@
760760
"@nodelib/fs.scandir" "2.1.4"
761761
fastq "^1.6.0"
762762

763-
"@primer/[email protected].0":
764-
version "4.3.0"
765-
resolved "https://registry.yarnpkg.com/@primer/primitives/-/primitives-4.3.0.tgz#446e868cd1c48437cbc3340c52b159ec2e015b78"
766-
integrity sha512-djXxll2yVTufmhnHA1H9bMT8I3S0ID6GlSewAJvKHlv80I+5AoZASVBF+WedtH/SyloLM5wyk+Tqj1ZNmy2+RQ==
763+
"@primer/[email protected].1":
764+
version "4.3.1"
765+
resolved "https://registry.yarnpkg.com/@primer/primitives/-/primitives-4.3.1.tgz#34ca84cddc03daff72764cae4d509679df763aae"
766+
integrity sha512-o9UFxVhKKZ+ryFx7H45xNC8rw98OPDsF2Lq5LNg+87yTKDu0Wc2qmhFRMrvMsFXCYMOJxkbgbhzVt/GG4CMqsA==
767767

768768
"@sinonjs/commons@^1.7.0":
769769
version "1.8.2"

0 commit comments

Comments
 (0)