Skip to content

Commit 078ab8a

Browse files
authored
Create src color-schemes directory (github#42127)
1 parent cfe4615 commit 078ab8a

6 files changed

Lines changed: 24 additions & 4 deletions

File tree

.github/workflows/test.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ jobs:
4545
{ name: 'assets', path: 'src/assets/tests', },
4646
// { name: 'audit-logs', path: 'src/assets/audit-logs', },
4747
{ name: 'automated-pipelines', path: 'src/automated-pipelines/tests', },
48+
{ name: 'color-schemes', path: 'src/color-schemes/tests', },
4849
{ name: 'content', path: 'tests/content', },
4950
{ name: 'content-render', path: 'src/content-render/tests', },
5051
{ name: 'events', path: 'src/events/tests', },

src/color-schemes/README.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# COLOR-SCHEMES
2+
3+
TBD what is COLOR-SCHEMES
4+
5+
## What COLOR-SCHEMES does
6+
7+
TBD why is COLOR-SCHEMES on the docs
8+
9+
## How COLOR-SCHEMES works
10+
11+
TBD step-by-step instructions to work on COLOR-SCHEMES
12+
13+
## How to work on COLOR-SCHEMES
14+
15+
TBD step-by-step instructions on how to work on COLOR-SCHEMES
16+
17+
## How to get help for COLOR-SCHEMES
18+
19+
TBD reference material
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { useState, useEffect } from 'react'
2-
import Cookies from '../lib/cookies'
2+
import Cookies from '../../../components/lib/cookies'
33

44
enum CssColorMode {
55
auto = 'auto',
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import {
44
getCssTheme,
55
defaultCSSTheme,
66
defaultComponentTheme,
7-
} from '../../components/hooks/useTheme.ts'
7+
} from '../components/useTheme.ts'
88

99
describe('getTheme basics', () => {
1010
test('always return an object with certain keys', () => {

src/frame/pages/app.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import {
1111
LanguagesContextT,
1212
LanguageItem,
1313
} from 'src/languages/components/LanguagesContext'
14-
import { useTheme } from 'components/hooks/useTheme'
14+
import { useTheme } from 'src/color-schemes/components/useTheme'
1515

1616
type MyAppProps = AppProps & {
1717
isDotComAuthenticated: boolean

src/pages/_document.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import Document, { DocumentContext, Html, Head, Main, NextScript } from 'next/document'
22
import { ServerStyleSheet } from 'styled-components'
33

4-
import { defaultCSSTheme } from 'components/hooks/useTheme'
4+
import { defaultCSSTheme } from 'src/color-schemes/components/useTheme'
55

66
export default class MyDocument extends Document {
77
static async getInitialProps(ctx: DocumentContext) {

0 commit comments

Comments
 (0)