Skip to content

Commit d708121

Browse files
committed
Added theme comment
#1210
1 parent 968c627 commit d708121

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

packages/components/src/SpectrumProvider.tsx

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,34 @@ const log = Log.module('SpectrumProvider');
1010
const { global, light, dark, medium, large } = defaultTheme;
1111

1212
// Extend light + dark theme variables with DH defaults.
13+
// A theme is just a mapped collection of css class names that are generated
14+
// from various css modules.
15+
// e.g.
16+
// {
17+
// global: {
18+
// spectrum: 'spectrum_9e130c',
19+
// 'spectrum--medium': 'spectrum--medium_9e130c',
20+
// 'spectrum--large': 'spectrum--large_9e130c',
21+
// 'spectrum--darkest': 'spectrum--darkest_9e130c',
22+
// 'spectrum--dark': 'spectrum--dark_9e130c',
23+
// 'spectrum--light': 'spectrum--light_9e130c',
24+
// 'spectrum--lightest': 'spectrum--lightest_9e130c',
25+
// },
26+
// light: {
27+
// 'spectrum--light': 'spectrum--light_a40724',
28+
// 'dh-spectrum-theme--light': '_dh-spectrum-theme--light_1hblg_22',
29+
// },
30+
// dark: {
31+
// 'spectrum--darkest': 'spectrum--darkest_256eeb',
32+
// 'dh-spectrum-theme--dark': '_dh-spectrum-theme--dark_f7kge_22',
33+
// },
34+
// medium: {
35+
// 'spectrum--medium': 'spectrum--medium_4b172c',
36+
// },
37+
// large: {
38+
// 'spectrum--large': 'spectrum--large_c40598',
39+
// },
40+
// }
1341
const themeDHDefault = {
1442
global,
1543
light: {

0 commit comments

Comments
 (0)