Skip to content

Commit 35540d3

Browse files
committed
LSPAY-34879: helios theme
1 parent c89cfe2 commit 35540d3

40 files changed

+1145
-10
lines changed

.github/workflows/chromatic-label.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ jobs:
66
name: Run visual regression tests with chromatic (label triggered)
77
if: ${{ contains(github.event.pull_request.labels.*.name, 'snapshot') }}
88
runs-on: ubuntu-latest
9+
env:
10+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
911
steps:
1012
- uses: actions/checkout@v2
1113
with:

.github/workflows/chromatic.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ jobs:
1010
snapshot:
1111
name: Run visual regression tests with chromatic
1212
runs-on: ubuntu-latest
13+
env:
14+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1315
steps:
1416
- uses: actions/checkout@v2
1517
with:

.github/workflows/publish-lerna.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ jobs:
99
publish:
1010
name: Publish
1111
runs-on: ubuntu-latest
12+
env:
13+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1214
steps:
1315
- uses: actions/checkout@v1
1416
- name: Dump GitHub context
@@ -22,7 +24,7 @@ jobs:
2224
uses: actions/setup-node@v2
2325
with:
2426
node-version: "${{ steps.nvm.outputs.nvmrc }}"
25-
registry-url: https://registry.npmjs.org/
27+
registry-url: https://npm.pkg.github.com
2628
- uses: actions/cache@v4
2729
with:
2830
path: ~/.cache/yarn
@@ -35,5 +37,3 @@ jobs:
3537
run: yarn bootstrap
3638
- name: Publish
3739
run: yarn lerna:publish
38-
env:
39-
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}

.github/workflows/publish-mainline.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ jobs:
99
publish:
1010
name: Publish
1111
runs-on: ubuntu-latest
12+
env:
13+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1214
steps:
1315
- uses: actions/checkout@v1
1416
- name: Dump GitHub context
@@ -22,7 +24,7 @@ jobs:
2224
uses: actions/setup-node@v2
2325
with:
2426
node-version: "${{ steps.nvm.outputs.nvmrc }}"
25-
registry-url: https://registry.npmjs.org/
27+
registry-url: https://npm.pkg.github.com
2628
- uses: actions/cache@v4
2729
with:
2830
path: ~/.cache/yarn
@@ -37,5 +39,3 @@ jobs:
3739
run: |
3840
cd packages/flame
3941
node ./scripts/check-changed.js && yarn build && yarn build:docgen && npm publish ./dist --quiet || exit 0
40-
env:
41-
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}

.github/workflows/test.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ jobs:
1010
build:
1111
name: Test, lint, typecheck
1212
runs-on: ubuntu-latest
13+
env:
14+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1315
steps:
1416
- uses: actions/checkout@master
1517
- name: Read .nvmrc

.npmrc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
init-author-name=Lightspeed
22
init-author-url=https://lightspeedhq.com
3-
registry=https://registry.npmjs.org/
3+
@lightspeed:registry=https://npm.pkg.github.com
4+
//npm.pkg.github.com/:_authToken=${GITHUB_TOKEN}

.storybook/addons/theme-switcher/register.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,18 @@ const ThemeSwitcher = () => {
4444
/>
4545
Lightspeed (Old theme)
4646
</label>
47+
<br />
48+
<label htmlFor="helioscolors">
49+
<input
50+
type="radio"
51+
value="helios"
52+
id="helioscolors"
53+
name="flame-theme"
54+
onChange={() => onChange('helios')}
55+
checked={state.selectedTheme === 'helios'}
56+
/>
57+
Helios
58+
</label>
4759
</fieldset>
4860
</div>
4961
);

.yarnrc.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,6 @@
11
nodeLinker: node-modules
2+
3+
npmScopes:
4+
lightspeed:
5+
npmAuthToken: '${GITHUB_TOKEN}'
6+
npmRegistryServer: 'https://npm.pkg.github.com'

packages/flame/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
"react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0"
3838
},
3939
"dependencies": {
40+
"@lightspeed/unified-tokens": "^3.3.0",
4041
"@popperjs/core": "^2.11.8",
4142
"@styled-system/css": "^5.1.5",
4243
"@styled-system/theme-get": "5.0.16",

packages/flame/scripts/build-themes.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { theme as flameTheme, themeUI as flameThemeUI } from '../themes/flame';
22
import { theme as oldSkoolTheme } from '../themes/oldskool';
33
import { theme as darkTheme } from '../themes/dark';
4+
import { theme as heliosTheme } from '../themes/helios';
45

56
// @ts-ignore
67
const fs = require('fs');
@@ -97,6 +98,10 @@ const themeList: ThemeList = [
9798
filename: 'dark',
9899
themeObject: darkTheme,
99100
},
101+
{
102+
filename: 'helios',
103+
themeObject: heliosTheme,
104+
},
100105
];
101106

102107
// @ts-ignore

0 commit comments

Comments
 (0)