Skip to content

Commit bbd0cb6

Browse files
authored
Merge pull request #1131 from primer/mkt/color-modes-whee
🎨 Color Modes
2 parents ca1b19e + f325e12 commit bbd0cb6

File tree

99 files changed

+13959
-22342
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

99 files changed

+13959
-22342
lines changed

.node-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
14.15.2

docs/content/components/buttons.md

Lines changed: 111 additions & 101 deletions
Large diffs are not rendered by default.

docs/content/components/dropdown.md

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -200,29 +200,3 @@ Align the direction of dropdown menus and their arrows with modifier classes.
200200
</details>
201201
</div>
202202
```
203-
204-
### Dark
205-
206-
```html live
207-
<div class="bg-gray-dark p-3 mt-n3 ml-n3 mr-n3 mb-n3" style="min-height: 240px;">
208-
<details class="dropdown details-reset details-overlay d-inline-block">
209-
<summary class="btn" aria-haspopup="true">
210-
Dropdown
211-
<div class="dropdown-caret"></div>
212-
</summary>
213-
214-
<div class="dropdown-menu dropdown-menu-se dropdown-menu-dark">
215-
<div class="dropdown-header">
216-
Dropdown header
217-
</div>
218-
<ul>
219-
<li><a class="dropdown-item" href="#url">Dropdown item</a></li>
220-
<li><a class="dropdown-item" href="#url">Dropdown item</a></li>
221-
<li class="dropdown-divider" role="none"></li>
222-
<li><a class="dropdown-item" href="#url">Dropdown item</a></li>
223-
<li><a class="dropdown-item" href="#url">Dropdown item</a></li>
224-
</ul>
225-
</div>
226-
</details>
227-
</div>
228-
```

docs/content/components/labels.md

Lines changed: 41 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -23,38 +23,32 @@ The base `Label` style does not apply a background color and only uses the defau
2323

2424
### Label contrast
2525

26-
Use `Label--gray` to create a label with a lighter text color. This label is neutral in color and can be used in contexts where all you need to communicate is metadata, or where you want a label to feel less prominent compared with labels with stronger colors.
26+
Use `Label--primary` to create a label with a stronger border. This label is also neutral in color, however, since its border is stronger it can stand out more compared to the default `Label`.
2727

28-
Use `Label--gray-darker` to create a label with a dark-gray color and border. This label is also neutral in color, however, since its color is darker it can stand out more compared to `Label--gray`.
28+
Use `Label--secondary` to create a label with a subtler text color. This label is neutral in color and can be used in contexts where all you need to communicate is metadata, or where you want a label to feel less prominent compared with labels with stronger colors.
2929

3030
```html live
3131
<span class="Label">Default</span>
32-
<span class="Label Label--gray ml-1">Gray</span>
33-
<span class="Label Label--gray-darker ml-1">Dark gray</span>
32+
<span class="Label Label--primary ml-1">Primary</span>
33+
<span class="Label Label--secondary ml-1">Secondary</span>
3434
```
3535

3636
### Colored labels
3737

38-
Labels come in a few different themes. Use a theme that helps communicate the content of the label, and ensure it's used consistently. A typical use of the themes are:
38+
Labels come in a few different functional classes. Use to communicate the content of the label, and ensure it's used consistently.
3939

40-
- `Label--yellow` -> Pending/highlight
41-
- `Label--orange` -> Warning
42-
- `Label--red` -> Error
43-
- `Label--green` -> Success
44-
- `Label--blue` -> Info
40+
- `Label--info`
41+
- `Label--success`
42+
- `Label--warning`
43+
- `Label--danger`
4544

4645
```html live
47-
<span class="Label mr-1 Label--yellow">Pending</span>
48-
<span class="Label mr-1 Label--orange">Warning</span>
49-
<span class="Label mr-1 Label--red">Error</span>
50-
<span class="Label mr-1 Label--green">Success</span>
51-
<span class="Label mr-1 Label--blue">Info</span>
52-
<span class="Label mr-1 Label--purple">PRO</span>
53-
<span class="Label mr-1 Label--pink">Sponsor</span>
46+
<span class="Label mr-1 Label--info">Info</span>
47+
<span class="Label mr-1 Label--success">Success</span>
48+
<span class="Label mr-1 Label--warning">Warning</span>
49+
<span class="Label mr-1 Label--danger">Danger</span>
5450
```
5551

56-
Note: Avoid using `Label--orange` next to `Label--red` since most people will find it hard to tell the difference.
57-
5852
### Label sizes
5953

6054
If space allows, add the `Label--large` modidfier to add a bit more padding to lables.
@@ -97,32 +91,34 @@ If an issue label needs to be bigger, add the `.IssueLabel--big` modifier.
9791

9892
## States
9993

100-
Use state labels to inform users of an items status. States are large labels with bolded text. The default state has a gray background.
101-
102-
```html live title="State"
103-
<span class="State">Default</span>
104-
```
94+
Use state labels to inform users of an items status. States are large labels with bolded text. The default state has a gray background. States come in a few variations that apply different colors. Use the state that best communicates the status or function.
10595

106-
### State themes
107-
108-
States come in a few variations that apply different colors. Use the state that best communicates the status or function.
96+
- `State`
97+
- `State State--draft`
98+
- `State State--open`
99+
- `State State--merged`
100+
- `State State--closed`
109101

110102
```html live
111-
<span class="State State--green mr-2">
103+
<span class="State State--draft mr-2">Draft</span>
104+
105+
<span class="State State--open mr-2">
112106
<!-- <%= octicon "git-pull-request" %> -->
113107
<svg class="octicon octicon-git-pull-request" width="16" height="16" viewBox="0 0 16 16" fill="currentColor" class="css-5lyks0"> <path fill-rule="evenodd" clip-rule="evenodd" d="M7.17674 3.07322L9.57318 0.676753C9.73068 0.51926 9.99996 0.630802 9.99996 0.853529V5.64642C9.99996 5.86915 9.73068 5.98069 9.57319 5.8232L7.17674 3.42677C7.07911 3.32914 7.07911 3.17085 7.17674 3.07322ZM3.75 2.5C3.33579 2.5 3 2.83579 3 3.25C3 3.66421 3.33579 4 3.75 4C4.16421 4 4.5 3.66421 4.5 3.25C4.5 2.83579 4.16421 2.5 3.75 2.5ZM1.5 3.25C1.5 2.00736 2.50736 1 3.75 1C4.99264 1 6 2.00736 6 3.25C6 4.22966 5.37389 5.06309 4.5 5.37197V10.628C5.37389 10.9369 6 11.7703 6 12.75C6 13.9926 4.99264 15 3.75 15C2.50736 15 1.5 13.9926 1.5 12.75C1.5 11.7703 2.12611 10.9369 3 10.628V5.37197C2.12611 5.06309 1.5 4.22966 1.5 3.25ZM11 2.5H10V4H11C11.5523 4 12 4.44772 12 5V10.628C11.1261 10.9369 10.5 11.7703 10.5 12.75C10.5 13.9926 11.5074 15 12.75 15C13.9926 15 15 13.9926 15 12.75C15 11.7703 14.3739 10.9369 13.5 10.628V5C13.5 3.61929 12.3807 2.5 11 2.5ZM12 12.75C12 12.3358 12.3358 12 12.75 12C13.1642 12 13.5 12.3358 13.5 12.75C13.5 13.1642 13.1642 13.5 12.75 13.5C12.3358 13.5 12 13.1642 12 12.75ZM3.75 12C3.33579 12 3 12.3358 3 12.75C3 13.1642 3.33579 13.5 3.75 13.5C4.16421 13.5 4.5 13.1642 4.5 12.75C4.5 12.3358 4.16421 12 3.75 12Z"></path></svg>
114108
Open
115109
</span>
116-
<span class="State State--red mr-2">
117-
<!-- <%= octicon "git-pull-request" %> -->
118-
<svg class="octicon octicon-git-pull-request" width="16" height="16" viewBox="0 0 16 16" fill="currentColor" class="css-5lyks0"> <path fill-rule="evenodd" clip-rule="evenodd" d="M7.17674 3.07322L9.57318 0.676753C9.73068 0.51926 9.99996 0.630802 9.99996 0.853529V5.64642C9.99996 5.86915 9.73068 5.98069 9.57319 5.8232L7.17674 3.42677C7.07911 3.32914 7.07911 3.17085 7.17674 3.07322ZM3.75 2.5C3.33579 2.5 3 2.83579 3 3.25C3 3.66421 3.33579 4 3.75 4C4.16421 4 4.5 3.66421 4.5 3.25C4.5 2.83579 4.16421 2.5 3.75 2.5ZM1.5 3.25C1.5 2.00736 2.50736 1 3.75 1C4.99264 1 6 2.00736 6 3.25C6 4.22966 5.37389 5.06309 4.5 5.37197V10.628C5.37389 10.9369 6 11.7703 6 12.75C6 13.9926 4.99264 15 3.75 15C2.50736 15 1.5 13.9926 1.5 12.75C1.5 11.7703 2.12611 10.9369 3 10.628V5.37197C2.12611 5.06309 1.5 4.22966 1.5 3.25ZM11 2.5H10V4H11C11.5523 4 12 4.44772 12 5V10.628C11.1261 10.9369 10.5 11.7703 10.5 12.75C10.5 13.9926 11.5074 15 12.75 15C13.9926 15 15 13.9926 15 12.75C15 11.7703 14.3739 10.9369 13.5 10.628V5C13.5 3.61929 12.3807 2.5 11 2.5ZM12 12.75C12 12.3358 12.3358 12 12.75 12C13.1642 12 13.5 12.3358 13.5 12.75C13.5 13.1642 13.1642 13.5 12.75 13.5C12.3358 13.5 12 13.1642 12 12.75ZM3.75 12C3.33579 12 3 12.3358 3 12.75C3 13.1642 3.33579 13.5 3.75 13.5C4.16421 13.5 4.5 13.1642 4.5 12.75C4.5 12.3358 4.16421 12 3.75 12Z"></path></svg>
119-
Closed
120-
</span>
121-
<span class="State State--purple mr-2">
110+
111+
<span class="State State--merged mr-2">
122112
<!-- <%= octicon "git-merge" %> -->
123113
<svg class="octicon octicon-git-merge" width="16" height="16" viewBox="0 0 16 16" fill="currentColor" class="css-5lyks0"> <path fill-rule="evenodd" clip-rule="evenodd" d="M5 3.254V3.25V3.255C4.99934 3.45369 4.91985 3.64401 4.779 3.78415C4.63815 3.9243 4.44745 4.00283 4.24875 4.0025C4.05006 4.00217 3.85961 3.923 3.71923 3.78239C3.57885 3.64177 3.5 3.45119 3.5 3.2525C3.5 3.0538 3.57885 2.86323 3.71923 2.72261C3.85961 2.58199 4.05006 2.50283 4.24875 2.5025C4.44745 2.50217 4.63815 2.5807 4.779 2.72084C4.91985 2.86099 4.99934 3.0513 5 3.25V3.254ZM5.45 5.154C5.88079 4.8824 6.2067 4.47269 6.37445 3.99186C6.54221 3.51102 6.54188 2.9875 6.37353 2.50687C6.20517 2.02624 5.87875 1.61694 5.44762 1.34588C5.01649 1.07483 4.50616 0.95804 4.00005 1.01462C3.49394 1.0712 3.022 1.2978 2.66137 1.65737C2.30074 2.01695 2.07276 2.48822 2.0147 2.99416C1.95664 3.5001 2.07193 4.01077 2.34173 4.4427C2.61152 4.87462 3.01987 5.20224 3.5 5.372V10.628C2.99931 10.8049 2.57729 11.1532 2.30855 11.6112C2.0398 12.0692 1.94163 12.6075 2.03139 13.1309C2.12114 13.6542 2.39305 14.1291 2.79904 14.4713C3.20503 14.8136 3.71897 15.0014 4.25 15.0014C4.78103 15.0014 5.29496 14.8136 5.70095 14.4713C6.10695 14.1291 6.37885 13.6542 6.46861 13.1309C6.55837 12.6075 6.4602 12.0692 6.19145 11.6112C5.9227 11.1532 5.50069 10.8049 5 10.628V7.123C5.53827 7.71503 6.19447 8.18788 6.92641 8.51114C7.65836 8.8344 8.44985 9.00093 9.25 9H10.628C10.8049 9.50069 11.1532 9.9227 11.6112 10.1915C12.0692 10.4602 12.6075 10.5584 13.1309 10.4686C13.6542 10.3789 14.1291 10.1069 14.4713 9.70096C14.8136 9.29496 15.0014 8.78103 15.0014 8.25C15.0014 7.71897 14.8136 7.20503 14.4713 6.79904C14.1291 6.39305 13.6542 6.12114 13.1309 6.03139C12.6075 5.94163 12.0692 6.0398 11.6112 6.30855C11.1532 6.57729 10.8049 6.99931 10.628 7.5H9.25C8.4613 7.50006 7.68813 7.28066 7.01702 6.86634C6.34592 6.45202 5.80334 5.85912 5.45 5.154ZM12.75 9C12.9489 9 13.1397 8.92098 13.2803 8.78033C13.421 8.63968 13.5 8.44891 13.5 8.25C13.5 8.05109 13.421 7.86032 13.2803 7.71967C13.1397 7.57902 12.9489 7.5 12.75 7.5C12.5511 7.5 12.3603 7.57902 12.2197 7.71967C12.079 7.86032 12 8.05109 12 8.25C12 8.44891 12.079 8.63968 12.2197 8.78033C12.3603 8.92098 12.5511 9 12.75 9ZM4.25 13.5C4.44891 13.5 4.63968 13.421 4.78033 13.2803C4.92098 13.1397 5 12.9489 5 12.75C5 12.5511 4.92098 12.3603 4.78033 12.2197C4.63968 12.079 4.44891 12 4.25 12C4.05109 12 3.86032 12.079 3.71967 12.2197C3.57902 12.3603 3.5 12.5511 3.5 12.75C3.5 12.9489 3.57902 13.1397 3.71967 13.2803C3.86032 13.421 4.05109 13.5 4.25 13.5Z"></path></svg>
124114
Merged
125115
</span>
116+
117+
<span class="State State--closed mr-2" title="Status: closed">
118+
<!-- <%= octicon "git-pull-request" %> -->
119+
<svg class="octicon octicon-git-pull-request" width="16" height="16" viewBox="0 0 16 16" fill="currentColor" class="css-5lyks0"> <path fill-rule="evenodd" clip-rule="evenodd" d="M7.17674 3.07322L9.57318 0.676753C9.73068 0.51926 9.99996 0.630802 9.99996 0.853529V5.64642C9.99996 5.86915 9.73068 5.98069 9.57319 5.8232L7.17674 3.42677C7.07911 3.32914 7.07911 3.17085 7.17674 3.07322ZM3.75 2.5C3.33579 2.5 3 2.83579 3 3.25C3 3.66421 3.33579 4 3.75 4C4.16421 4 4.5 3.66421 4.5 3.25C4.5 2.83579 4.16421 2.5 3.75 2.5ZM1.5 3.25C1.5 2.00736 2.50736 1 3.75 1C4.99264 1 6 2.00736 6 3.25C6 4.22966 5.37389 5.06309 4.5 5.37197V10.628C5.37389 10.9369 6 11.7703 6 12.75C6 13.9926 4.99264 15 3.75 15C2.50736 15 1.5 13.9926 1.5 12.75C1.5 11.7703 2.12611 10.9369 3 10.628V5.37197C2.12611 5.06309 1.5 4.22966 1.5 3.25ZM11 2.5H10V4H11C11.5523 4 12 4.44772 12 5V10.628C11.1261 10.9369 10.5 11.7703 10.5 12.75C10.5 13.9926 11.5074 15 12.75 15C13.9926 15 15 13.9926 15 12.75C15 11.7703 14.3739 10.9369 13.5 10.628V5C13.5 3.61929 12.3807 2.5 11 2.5ZM12 12.75C12 12.3358 12.3358 12 12.75 12C13.1642 12 13.5 12.3358 13.5 12.75C13.5 13.1642 13.1642 13.5 12.75 13.5C12.3358 13.5 12 13.1642 12 12.75ZM3.75 12C3.33579 12 3 12.3358 3 12.75C3 13.1642 3.33579 13.5 3.75 13.5C4.16421 13.5 4.5 13.1642 4.5 12.75C4.5 12.3358 4.16421 12 3.75 12Z"></path></svg>
120+
Closed
121+
</span>
126122
```
127123

128124
### Small states
@@ -131,12 +127,12 @@ Use `State--small` for a state label with reduced padding a smaller font size. T
131127

132128
```html live
133129
<span class="State State--small mr-2">Default</span>
134-
<span class="State State--small State--green mr-2">
130+
<span class="State State--small State--open mr-2">
135131
<!-- <%= octicon "issue-opened" %> -->
136132
<svg class="octicon octicon-issue-opened" viewBox="0 0 14 16" version="1.1" width="14" height="16" aria-hidden="true"><path fill-rule="evenodd" d="M7 2.3c3.14 0 5.7 2.56 5.7 5.7s-2.56 5.7-5.7 5.7A5.71 5.71 0 0 1 1.3 8c0-3.14 2.56-5.7 5.7-5.7zM7 1C3.14 1 0 4.14 0 8s3.14 7 7 7 7-3.14 7-7-3.14-7-7-7zm1 3H6v5h2V4zm0 6H6v2h2v-2z"></path></svg>
137133
Open
138134
</span>
139-
<span class="State State--small State--red mr-2">
135+
<span class="State State--small State--closed mr-2">
140136
<!-- <%= octicon "issue-closed" %> -->
141137
<svg class="octicon octicon-issue-closed" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path fill-rule="evenodd" d="M7 10h2v2H7v-2zm2-6H7v5h2V4zm1.5 1.5l-1 1L12 9l4-4.5-1-1L12 7l-1.5-1.5zM8 13.7A5.71 5.71 0 0 1 2.3 8c0-3.14 2.56-5.7 5.7-5.7 1.83 0 3.45.88 4.5 2.2l.92-.92A6.947 6.947 0 0 0 8 1C4.14 1 1 4.14 1 8s3.14 7 7 7 7-3.14 7-7l-1.52 1.52c-.66 2.41-2.86 4.19-5.48 4.19v-.01z"></path></svg>
142138
Closed
@@ -145,12 +141,18 @@ Use `State--small` for a state label with reduced padding a smaller font size. T
145141

146142
## Counters
147143

148-
Use the `Counter` component to add a count to navigational elements and buttons. Counters come in 3 variations: the default `Counter` with a light gray background, the `Counter--gray-light` with a lighter text color, and `Counter--gray` with a dark-gray background and inverse white text. When a counter is empty, its visibility will be hidden.
144+
Use the `Counter` component to add a count to navigational elements and buttons. Counters come in 3 variations:
145+
146+
1. the default `Counter`,
147+
2. the `Counter--primary` with a stronger background color
148+
3. and `Counter--secondary` with a more subtler text color.
149+
150+
Note: When a counter is empty, its visibility will be hidden.
149151

150152
```html live
151153
<span class="Counter mr-1">1</span>
152-
<span class="Counter mr-1 Counter--gray-light">23</span>
153-
<span class="Counter mr-1 Counter--gray">456</span>
154+
<span class="Counter mr-1 Counter--primary">23</span>
155+
<span class="Counter mr-1 Counter--secondary">456</span>
154156
```
155157

156158
Use the `Counter` in navigation to indicate the number of items without the user having to click through or count the items, such as open issues in a GitHub repo. See more options in [navigation](./navigation).

docs/content/components/links.md

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
---
2+
title: Links
3+
path: components/links
4+
status: New
5+
source: 'https://github.com/primer/css/tree/master/src/links'
6+
bundle: links
7+
---
8+
9+
By default `<a>` elements already use the right link color and apply an underline on hover.
10+
11+
```html live
12+
Some text with a default <a href="#url">link</a>
13+
```
14+
15+
If you need to make other elements behave like a link and perhaps use JS to trigger navigating to another page, use the `.Link` class.
16+
17+
```html live
18+
Some text with a <span class="Link">span that behaves like a link</span>
19+
```
20+
21+
If you like to override the default link styles you can do so with the following link utilities. **Bear in mind that link styles are easier for more people to see and interact with when the changes in styles do not rely on color alone.**
22+
23+
Use `.Link--primary` to turn the link color to blue only on hover.
24+
25+
```html live
26+
<p class="color-text-secondary">Some text with a <a class="Link--primary" href="#url">Link--primary</a></p>
27+
```
28+
29+
Use `.Link--secondary` for a more subtle link color that turns blue on hover.
30+
31+
```html live
32+
Some text with a <a class="Link--secondary" href="#url">Link--secondary</a>
33+
```
34+
35+
Use `.Link--muted` also removes the underline on hover. Tip: You can also use the `.no-underline` utility to do the same for `.Link--primary`.
36+
37+
```html live
38+
<p>Some text with a <a class="Link--secondary no-underline" href="#url">Link--muted</a></p>
39+
<p>Some text with a <a class="Link--primary no-underline" href="#url">Link--primary no-underline</a></p>
40+
```
41+
42+
Use `.Link--onHover` to make any text color used with links to turn blue on hover. This is useful when you want only part of a link to turn blue on hover.
43+
44+
```html live
45+
<a class="color-text-secondary no-underline" href="#url">
46+
A link with a partial <span class="Link--onHover">Link--onHover</span>
47+
</a>
48+
```

docs/content/components/marketing-buttons.md

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,18 @@ bundle: marketing-buttons
88

99
Marketing buttons come in different colors and sizes, and are also available in a blue outlined version.
1010

11-
## Colors and outlined
11+
## Colors, outlined and transparent
1212

1313
Marketing buttons can be solid blue, outlined blue, solid green, or transparent.
1414

1515
The solid blue and solid green buttons have more visual emphasis than the blue outlined button, therefore they should be used sparingly and only for call to actions that need emphasis.
1616

1717
```html live
18-
<button class="btn-mktg mr-2" type="button">Learn more</button>
19-
<button class="btn-mktg btn-outline-mktg mr-2" type="button">Learn more</button>
20-
<button class="btn-mktg btn-primary-mktg mr-2" type="button">Sign up</button>
21-
<div class="bg-gray-dark">
22-
<button class="btn-mktg btn-transparent m-2" type="button">Learn more</button>
18+
<button class="btn-mktg mr-3" type="button">Learn more</button>
19+
<button class="btn-mktg btn-primary-mktg mr-3" type="button">Sign up</button>
20+
<button class="btn-mktg btn-outline-mktg mr-3" type="button">Learn more</button>
21+
<div class="mt-3 p-3" style="background-color: var(--color-scale-gray-9);">
22+
<button class="btn-mktg btn-transparent" type="button">Learn more</button>
2323
</div>
2424
```
2525

@@ -29,9 +29,10 @@ Available in two sizes, marketing buttons have a default size and a large size.
2929

3030
```html live
3131
<button class="btn-mktg mr-2" type="button">Learn more</button>
32-
<button class="btn-mktg btn-outline-mktg mr-2" type="button">Learn more</button>
3332
<button class="btn-mktg btn-primary-mktg mr-2" type="button">Sign up</button>
33+
<button class="btn-mktg btn-outline-mktg mr-2" type="button">Learn more</button>
34+
<hr>
3435
<button class="btn-mktg btn-large-mktg mr-2" type="button">Learn more</button>
35-
<button class="btn-mktg btn-outline-mktg btn-large-mktg mr-2" type="button">Learn more</button>
3636
<button class="btn-mktg btn-primary-mktg btn-large-mktg mr-2" type="button">Sign up</button>
37+
<button class="btn-mktg btn-outline-mktg btn-large-mktg mr-2" type="button">Learn more</button>
3738
```

docs/content/components/timeline.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ The `TimelineItem` component is used to display items on a vertical timeline, co
2626

2727
## TimelineItem-badge
2828

29-
The default TimelineItem-badge color is dark text on a light grey background.
29+
The default TimelineItem-badge color is dark text on a light gray background.
3030

3131
```html live
3232
<!-- Default TimelineItem Badge -->

docs/content/getting-started/index.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,3 +102,9 @@ You won't need to install any node modules or Sass compilers for a static site;
102102
```html
103103
<link href="https://unpkg.com/@primer/css/dist/primer.css" rel="stylesheet" />
104104
```
105+
106+
**Warning**: Only use the "latest" version for short lived experiments. To be safe it's recommended to use the [latest version](https://github.com/primer/css/releases/latest) spelled out (for example `@15.2.0`). This ensures that the constant changes to Primer CSS won't break anything.
107+
108+
```html
109+
<link rel="stylesheet" href="https://unpkg.com/@primer/css@15.2.0/dist/primer.css" />
110+
```

0 commit comments

Comments
 (0)