Skip to content

Commit e966582

Browse files
committed
docs: update look'n'feel as well as cover image
1 parent ff075bc commit e966582

File tree

7 files changed

+1095
-332
lines changed

7 files changed

+1095
-332
lines changed

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -72,23 +72,23 @@
7272
"update-references": "workspaces-to-typescript-project-references --includesRoot"
7373
},
7474
"devDependencies": {
75-
"@monorepo-utils/workspaces-to-typescript-project-references": "^2.10.4",
75+
"@monorepo-utils/workspaces-to-typescript-project-references": "^2.11.0",
7676
"@qiwi/multi-semantic-release": "^7.1.2",
77-
"@snowball-tech/prettier-config": "^2.1.4",
78-
"@snowball-tech/semantic-release-config": "^3.0.5",
77+
"@snowball-tech/prettier-config": "^2.1.5",
78+
"@snowball-tech/semantic-release-config": "^3.0.6",
7979
"chromatic": "^11.28.2",
8080
"depcheck": "^1.4.7",
8181
"eslint": "^9.26.0",
8282
"husky": "^9.1.7",
8383
"is-ci": "^4.1.0",
84-
"lint-staged": "^15.5.1",
84+
"lint-staged": "^16.0.0",
8585
"nodemon": "^3.1.10",
8686
"prettier": "^3.5.3",
8787
"semantic-release": "^24.2.3",
8888
"serve": "^14.2.4"
8989
},
9090
"dependencies": {
91-
"@snowball-tech/eslint-snowball-config": "^2.0.14",
91+
"@snowball-tech/eslint-snowball-config": "^2.0.15",
9292
"@yarnpkg/types": "^4.0.1"
9393
}
9494
}

packages/fractal/.storybook/preview-head.html

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,12 @@
1515
letter-spacing: var(--typography-display-2-letter-spacing);
1616
}
1717

18+
.cover-img {
19+
border: var(--border-1) !important;
20+
border-radius: var(--size-radius-s) !important;
21+
box-shadow: var(--shadow-brutal-1) !important;
22+
}
23+
1824
.sbdocs-content > h2 {
1925
font-family: var(--typography-heading-2-font-family);
2026
font-size: var(--typography-heading-2-font-size-xxs);
@@ -54,6 +60,13 @@
5460
text-decoration: var(--typography-body-1-link-text-decoration);
5561
}
5662

63+
.sbdocs-content > blockquote {
64+
background-color: var(--color-base-white) !important;
65+
border-radius: var(--size-radius-s) !important;
66+
border: var(--border-1) !important;
67+
padding: var(--size-spacing-2) !important;
68+
}
69+
5770
.sbdocs-content > blockquote > * {
5871
font-family: var(--typography-body-2-font-family);
5972
font-size: var(--typography-body-2-font-size);
@@ -77,12 +90,12 @@
7790
}
7891

7992
.docblock-source {
93+
background-color: var(--color-base-white) !important;
8094
margin: 0 0 var(--size-spacing-4) !important;
8195
box-shadow: var(--shadow-brutal-2) !important;
8296
border-radius: var(--size-radius-s) !important;
8397
}
8498

85-
.sbdocs-wrapper,
8699
.docblock-source button,
87100
.docblock-code-toggle {
88101
background-color: var(--color-base-white) !important;
@@ -93,16 +106,26 @@
93106
border-radius: var(--size-radius-s) !important;
94107
}
95108

109+
.docblock-argstable-body,
110+
.docblock-argstable-body td {
111+
background-color: var(--color-base-white) !important;
112+
}
113+
96114
.docblock-argstable-body > tr > td:first-of-type,
97115
.docblock-argstable-body > tr > td:last-of-type {
98116
border-radius: var(--size-radius-0) !important;
99117
}
100118

101119
.sbdocs-preview {
120+
background-color: var(--color-base-white) !important;
102121
box-shadow: var(--shadow-brutal-2) !important;
103122
border-radius: var(--size-radius-s) !important;
104123
}
105124

125+
.docblock-typeset {
126+
background-color: var(--color-base-white) !important;
127+
}
128+
106129
hr {
107130
height: 1px;
108131
min-height: 1px;
@@ -113,7 +136,7 @@
113136
}
114137

115138
.example-block {
116-
background-color: var(--color-background-body-light) !important;
139+
background-color: var(--color-base-white) !important;
117140
padding: 20px !important;
118141
}
119142

packages/fractal/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"clsx": "^2.1.1",
3333
"country-flag-icons": "^1.5.19",
3434
"emoji-mart": "^5.6.0",
35-
"libphonenumber-js": "^1.12.7",
35+
"libphonenumber-js": "^1.12.8",
3636
"lodash": "^4.17.21",
3737
"normalize.css": "^8.0.1",
3838
"react": "^18.3.1",
@@ -47,7 +47,7 @@
4747
"devDependencies": {
4848
"@csstools/postcss-cascade-layers": "^5.0.1",
4949
"@snowball-tech/eslint-config": "^5.6.2",
50-
"@snowball-tech/prettier-config": "^2.1.4",
50+
"@snowball-tech/prettier-config": "^2.1.5",
5151
"@storybook/addon-a11y": "^8.6.12",
5252
"@storybook/addon-actions": "^8.6.12",
5353
"@storybook/addon-essentials": "^8.6.12",
@@ -82,7 +82,7 @@
8282
"storybook-addon-mock-date": "^0.6.0",
8383
"tsup": "^8.4.0",
8484
"typescript": "^5.8.3",
85-
"vercel": "^41.7.0",
85+
"vercel": "^41.7.4",
8686
"vite": "^6.3.5",
8787
"vite-tsconfig-paths": "^5.1.4"
8888
},
Loading
Loading

packages/fractal/stories/Introduction.mdx

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,9 @@ import { Meta } from '@storybook/blocks'
22

33
<Meta title="Fractal" />
44

5-
# <img alt="Fractal's logo" src="/images/logo_fractal.png" width="50" /> Fractal
5+
# <img alt="" src="/images/logo_fractal.png" width="50" /> Fractal
66

7-
---
8-
9-
![Fractal design system](/images/cover_fractal.png)
7+
<img alt="" src="/images/cover_fractal.png" className="cover-img" />
108

119
Fractal is [Snowball's](https://snowball.xyz) design system.
1210

@@ -99,6 +97,6 @@ There are **2 passionate folks** behind Fractal:
9997
- [Léa Mendes Da Silva](https://dribbble.com/LeaMendes), [principal designer](https://www.linkedin.com/in/leadesign/) at
10098
[Snowball](https://www.linkedin.com/company/getsnowball/).
10199
She loves rainbows, unicorns, Baba (her Golden retriever) and built the Figma file with love.
102-
- [Clément Prévot](github.com/clementprevot), [lead tech](https://www.linkedin.com/in/clement-p/) at
100+
- [Clément Prévot](github.com/clementprevot), [CTO](https://www.linkedin.com/in/clement-p/) at
103101
[Snowball](https://www.linkedin.com/company/getsnowball/).
104102
He loves Star Wars, Lego, Lapland, and built Fractal’s code and documentation with the heart.

0 commit comments

Comments
 (0)