Skip to content

Commit b86ae68

Browse files
Fix documentation issues (#289)
This PR fixes a few issues with the documentation and updates dependencies.
1 parent 1bcb490 commit b86ae68

10 files changed

Lines changed: 1752 additions & 3033 deletions

File tree

.eslintrc.json

Lines changed: 0 additions & 14 deletions
This file was deleted.

.node-version

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

.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
# Tools
22
tools/templates
33
.yarn/*
4+
optics-design-system.code-workspace

.storybook/preview.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@
1616
.sbdocs.sbdocs-toc--custom {
1717
width: 15rem;
1818
min-width: 15rem;
19+
background-color: var(--op-color-background);
20+
color: var(--op-color-on-background);
21+
color-scheme: light;
1922

2023
> nav {
2124
width: 15rem;
@@ -170,6 +173,7 @@
170173
align-items: center;
171174
justify-content: space-between;
172175
padding: var(--op-space-large);
176+
color-scheme: light;
173177
gap: var(--op-space-large);
174178

175179
.card__info {

eslint.config.mjs

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
import js from '@eslint/js'
2+
import globals from 'globals'
3+
import { defineConfig } from 'eslint/config'
4+
5+
import eslintConfigPrettier from 'eslint-config-prettier/flat'
6+
import storybook from 'eslint-plugin-storybook'
7+
8+
export default defineConfig([
9+
{
10+
files: ['**/*.{js,mjs,cjs}'],
11+
plugins: { js },
12+
extends: ['js/recommended'],
13+
languageOptions: { globals: globals.browser },
14+
rules: {
15+
'no-unused-vars': [
16+
'warn',
17+
{
18+
argsIgnorePattern: '^_', // Allow unused arguments starting with an underscore
19+
varsIgnorePattern: '^_', // Allow unused variables starting with an underscore
20+
ignoreRestSiblings: true,
21+
},
22+
],
23+
},
24+
},
25+
eslintConfigPrettier,
26+
...storybook.configs['flat/recommended'],
27+
])

optics-design-system.code-workspace

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,23 @@
77
"settings": {
88
"prettier.configPath": ".prettierrc.json",
99
"stylelint.configFile": ".stylelintrc.json",
10-
"stylelint.validate": ["css"],
10+
"stylelint.validate": [
11+
"css"
12+
],
1113
"editor.codeActionsOnSave": {
1214
"source.fixAll.stylelint": "always",
1315
},
1416
"editor.formatOnSave": true,
15-
"cSpell.words": ["esbenp", "graphviz", "subline", "tintinweb", "unifiedjs"],
17+
"cSpell.words": [
18+
"esbenp",
19+
"graphviz",
20+
"subline",
21+
"tintinweb",
22+
"unifiedjs"
23+
],
24+
"[css]": {
25+
"editor.defaultFormatter": "esbenp.prettier-vscode",
26+
},
1627
},
1728
"extensions": {
1829
"recommendations": [

package.json

Lines changed: 18 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -46,29 +46,27 @@
4646
"modern-css-reset": "^1.4.0"
4747
},
4848
"devDependencies": {
49-
"@babel/preset-env": "^7.23.9",
50-
"@storybook/addon-docs": "^9.1.0",
51-
"@storybook/html-vite": "^9.1.0",
52-
"cssnano": "^7.0.6",
53-
"eslint": "^8.45.0",
54-
"eslint-config-prettier": "^9.1.0",
55-
"eslint-config-standard": "^17.1.0",
56-
"eslint-plugin-import": "^2.27.5",
57-
"eslint-plugin-n": "^16.0.1",
58-
"eslint-plugin-promise": "^6.1.1",
59-
"eslint-plugin-storybook": "^9.1.0",
49+
"@babel/preset-env": "^7.28.3",
50+
"@eslint/js": "^9.34.0",
51+
"@storybook/addon-docs": "^9.1.4",
52+
"@storybook/html-vite": "^9.1.4",
53+
"cssnano": "^7.1.1",
54+
"eslint": "^9.34.0",
55+
"eslint-config-prettier": "^10.1.8",
56+
"eslint-plugin-storybook": "^9.1.4",
6057
"generate-template-files": "^3.2.1",
61-
"postcss": "^8.4.38",
62-
"postcss-cli": "^11.0.0",
63-
"postcss-import": "^16.1.0",
64-
"prettier": "^3.0.0",
65-
"storybook": "^9.1.0",
58+
"globals": "^16.3.0",
59+
"postcss": "^8.5.6",
60+
"postcss-cli": "^11.0.1",
61+
"postcss-import": "^16.1.1",
62+
"prettier": "^3.6.2",
63+
"storybook": "^9.1.4",
6664
"storybook-design-token": "^4.1.0",
67-
"style-loader": "^3.3.3",
68-
"stylelint": "^16.2.1",
65+
"style-loader": "^4.0.0",
66+
"stylelint": "^16.23.1",
6967
"stylelint-config-idiomatic-order": "^10.0.0",
70-
"stylelint-prettier": "^5.0.0",
71-
"vite": "^5.4.14"
68+
"stylelint-prettier": "^5.0.3",
69+
"vite": "^7.1.4"
7270
},
7371
"peerDependencies": {
7472
"tom-select": "^2.0.0"

src/core/tokens/base_tokens.css

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -297,17 +297,23 @@
297297
*/
298298
--op-input-inner-focus: inset 0 0 0 var(--op-border-width-large);
299299
--op-input-outer-focus: 0 0 0 var(--op-border-width-x-large);
300-
--op-input-focus-primary: var(--op-input-inner-focus) var(--op-color-primary-plus-two),
300+
--op-input-focus-primary:
301+
var(--op-input-inner-focus) var(--op-color-primary-plus-two),
301302
var(--op-input-outer-focus) var(--op-color-primary-plus-five);
302-
--op-input-focus-neutral: var(--op-input-inner-focus) var(--op-color-neutral-plus-two),
303+
--op-input-focus-neutral:
304+
var(--op-input-inner-focus) var(--op-color-neutral-plus-two),
303305
var(--op-input-outer-focus) var(--op-color-neutral-plus-five);
304-
--op-input-focus-danger: var(--op-input-inner-focus) var(--op-color-alerts-danger-plus-two),
306+
--op-input-focus-danger:
307+
var(--op-input-inner-focus) var(--op-color-alerts-danger-plus-two),
305308
var(--op-input-outer-focus) var(--op-color-alerts-danger-plus-five);
306-
--op-input-focus-warning: var(--op-input-inner-focus) var(--op-color-alerts-warning-plus-two),
309+
--op-input-focus-warning:
310+
var(--op-input-inner-focus) var(--op-color-alerts-warning-plus-two),
307311
var(--op-input-outer-focus) var(--op-color-alerts-warning-plus-five);
308-
--op-input-focus-info: var(--op-input-inner-focus) var(--op-color-alerts-info-plus-two),
312+
--op-input-focus-info:
313+
var(--op-input-inner-focus) var(--op-color-alerts-info-plus-two),
309314
var(--op-input-outer-focus) var(--op-color-alerts-info-plus-five);
310-
--op-input-focus-notice: var(--op-input-inner-focus) var(--op-color-alerts-notice-plus-two),
315+
--op-input-focus-notice:
316+
var(--op-input-inner-focus) var(--op-color-alerts-notice-plus-two),
311317
var(--op-input-outer-focus) var(--op-color-alerts-notice-plus-five);
312318
}
313319

src/stories/Overview/Introduction.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import packageData from '../../../package.json'
2525
<div className="card card--company card--shadow-x-small">
2626
<div className="card__info">
2727
<img className="card__info-logo" src="./public/rms-logo.svg" alt="RoleModel Software Logo" />
28-
<p>Optics, a RoleModel Software innovation, is a product of our mission to deliver exceptional digital products.</p>
28+
<span>Optics, a RoleModel Software innovation, is a product of our mission to deliver exceptional digital products.</span>
2929
</div>
3030
<a className="btn sb-unstyled" href="https://rolemodelsoftware.com/" target="_blank">
3131
<span>Learn About RoleModel Software</span>
@@ -36,10 +36,10 @@ import packageData from '../../../package.json'
3636
<div className="card card--company card--shadow-x-small">
3737
<div className="card__info">
3838
<img className="card__info-logo" src="./public/optics-logo.svg" alt="Optics Logo" />
39-
<p>
39+
<span>
4040
Optics embodies the RoleModel ethos of deep collaboration, uniting our team's diverse expertise with the shared
4141
goal of crafting excellent design solutions and our commitment to Character, Collaboration, and Craftsmanship.
42-
</p>
42+
</span>
4343
</div>
4444
<a className="btn sb-unstyled" href="https://optics.rolemodel.design/" target="_blank">
4545
<span>Learn About The Vision Behind Optics</span>

0 commit comments

Comments
 (0)