Skip to content

Commit 9b3eeb7

Browse files
authored
Docs: fix stale ScssDocs in colors and background utility pages (#42698)
Uncomment and repoint the ScssDocs references that predate the v6 color/theme refactor (they pointed at markers removed from scss/_config.scss). Cross-link to the Color and Theme customize docs instead of duplicating the $colors/$theme-colors Sass maps that are already documented there in full.
1 parent c0c1146 commit 9b3eeb7

2 files changed

Lines changed: 4 additions & 34 deletions

File tree

site/src/content/docs/utilities/background.mdx

Lines changed: 2 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -83,33 +83,13 @@ In addition to the following Sass functionality, consider reading about our incl
8383

8484
### Sass variables
8585

86-
Most `background-color` utilities are generated by our theme colors, reassigned from our generic color palette variables.
87-
88-
{/*<ScssDocs name="color-variables" file="scss/_config.scss" />*/}
89-
90-
{/* <ScssDocs name="theme-color-variables" file="scss/_config.scss" /> */}
86+
Most `background-color` utilities are generated by our theme colors, reassigned from our generic color palette variables. Grayscale colors are also available, but only a subset are used to generate any utilities. See the [Color]([[docsref:/customize/color]]) documentation for our base color variables and map.
9187

9288
<ScssDocs name="variable-gradient" file="scss/_config.scss" />
9389

94-
Grayscale colors are also available, but only a subset are used to generate any utilities.
95-
96-
{/*<ScssDocs name="gray-color-variables" file="scss/_config.scss" />*/}
97-
98-
Variables for setting `background-color` in `.bg-*-subtle` utilities in light and dark mode:
99-
100-
{/* <ScssDocs name="theme-bg-subtle-variables" file="scss/_config.scss" /> */}
101-
102-
{/* <ScssDocs name="theme-bg-subtle-dark-variables" file="scss/_variables-dark.scss" /> */}
103-
10490
### Sass maps
10591

106-
Theme colors are then put into a Sass map so we can loop over them to generate our utilities, component modifiers, and more.
107-
108-
{/* <ScssDocs name="theme-colors-map" file="scss/_config.scss" /> */}
109-
110-
Grayscale colors are also available as a Sass map. **This map is not used to generate any utilities.**
111-
112-
{/*<ScssDocs name="gray-colors-map" file="scss/_config.scss" />*/}
92+
Theme colors are then put into a Sass map so we can loop over them to generate our utilities, component modifiers, and more. See the [Theme]([[docsref:/customize/theme]]) documentation for the full `$theme-colors` Sass map.
11393

11494
### Sass mixins
11595

site/src/content/docs/utilities/colors.mdx

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -110,21 +110,11 @@ In addition to the following Sass functionality, consider reading about our incl
110110

111111
### Sass variables
112112

113-
Most `color` utilities are generated by our theme colors, reassigned from our generic color palette variables.
114-
115-
{/* <ScssDocs name="theme-color-variables" file="scss/_config.scss" /> */}
116-
117-
Grayscale colors are also available, but only a subset are used to generate any utilities.
113+
Most `color` utilities are generated by our theme colors, reassigned from our generic color palette variables. Grayscale colors are also available, but only a subset are used to generate any utilities. See the [Color]([[docsref:/customize/color]]) documentation for our base color variables and map.
118114

119115
### Sass maps
120116

121-
Theme colors are then put into a Sass map so we can loop over them to generate our utilities, component modifiers, and more.
122-
123-
{/* <ScssDocs name="theme-colors-map" file="scss/_config.scss" /> */}
124-
125-
Grayscale colors are also available as a Sass map. **This map is not used to generate any utilities.**
126-
127-
{/*<ScssDocs name="gray-colors-map" file="scss/_config.scss" />*/}
117+
Theme colors are then put into a Sass map so we can loop over them to generate our utilities, component modifiers, and more. See the [Theme]([[docsref:/customize/theme]]) documentation for the full `$theme-colors` Sass map.
128118

129119
### Sass utilities API
130120

0 commit comments

Comments
 (0)