@olivmath_/fw3 0.0.0-stage → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +87 -2
- package/assets/Geist-VariableFont_wght.ttf +0 -0
- package/assets/GeistMono-VariableFont_wght.ttf +0 -0
- package/assets/logo.png +0 -0
- package/assets/logo.svg +18 -0
- package/assets/logomarca.svg +12 -0
- package/brand.css +37 -0
- package/package.json +24 -4
- package/src/assets.js +19 -0
- package/src/colors.js +24 -0
- package/src/index.js +4 -0
- package/src/spacing.js +10 -0
- package/src/typography.js +46 -0
package/README.md
CHANGED
|
@@ -1,3 +1,88 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @fw3/brand
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Identidade visual do Floripa Web3 — tokens de design, logo e logomarca.
|
|
4
|
+
|
|
5
|
+
## Instalação
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install @fw3/brand
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Uso
|
|
12
|
+
|
|
13
|
+
### JavaScript / TypeScript
|
|
14
|
+
|
|
15
|
+
```js
|
|
16
|
+
import { colors, typography, spacing } from "@fw3/brand";
|
|
17
|
+
|
|
18
|
+
// Cor primária
|
|
19
|
+
console.log(colors.blue); // "#183CFF"
|
|
20
|
+
|
|
21
|
+
// Tipografia
|
|
22
|
+
console.log(typography.heading.fontFamily); // "Geist, Arial, sans-serif"
|
|
23
|
+
|
|
24
|
+
// Espaçamento (grid 8px)
|
|
25
|
+
console.log(spacing.md); // 16
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
### CSS Variables
|
|
29
|
+
|
|
30
|
+
```css
|
|
31
|
+
@import "@fw3/brand/brand.css";
|
|
32
|
+
|
|
33
|
+
body {
|
|
34
|
+
background: var(--fw3-canvas);
|
|
35
|
+
color: var(--fw3-black);
|
|
36
|
+
font-family: var(--fw3-font-display);
|
|
37
|
+
}
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
### Assets (logo, logomarca, fontes)
|
|
41
|
+
|
|
42
|
+
```js
|
|
43
|
+
import { paths } from "@fw3/brand/assets";
|
|
44
|
+
|
|
45
|
+
// paths.logo.svg → caminho absoluto do logo SVG
|
|
46
|
+
// paths.logo.png → caminho absoluto do logo PNG
|
|
47
|
+
// paths.logomarca.svg → caminho absoluto da logomarca SVG
|
|
48
|
+
// paths.fonts.geist → caminho absoluto da fonte Geist
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
Ou importe diretamente:
|
|
52
|
+
|
|
53
|
+
```js
|
|
54
|
+
import logoSvg from "@fw3/brand/assets/logo.svg";
|
|
55
|
+
import logomarcaSvg from "@fw3/brand/assets/logomarca.svg";
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
## Paleta
|
|
59
|
+
|
|
60
|
+
| Token | Hex | Uso |
|
|
61
|
+
|---|---|---|
|
|
62
|
+
| `blue` | `#183CFF` | Primária, CTAs |
|
|
63
|
+
| `yellow` | `#FFDB18` | Acento |
|
|
64
|
+
| `black` | `#08090B` | Texto |
|
|
65
|
+
| `white` | `#FFFFFF` | Fundo cards |
|
|
66
|
+
| `blueDeep` | `#183F8F` | Links |
|
|
67
|
+
| `blueSoft` | `#CBD6FF` | Fundos suaves |
|
|
68
|
+
| `blueLine` | `#7DA2F8` | Bordas |
|
|
69
|
+
| `canvas` | `#F5F5F3` | Fundo página |
|
|
70
|
+
| `panel` | `#E7E7E4` | Painéis |
|
|
71
|
+
| `muted` | `#555D69` | Texto secundário |
|
|
72
|
+
| `danger` | `#D0121A` | Erros |
|
|
73
|
+
|
|
74
|
+
## Tipografia
|
|
75
|
+
|
|
76
|
+
Família única: **Geist** (display, heading, body) + **Geist Mono** (code, accent).
|
|
77
|
+
|
|
78
|
+
| Papel | Peso | Tamanho | Line-height |
|
|
79
|
+
|---|---|---|---|
|
|
80
|
+
| display | 600 | 64px | 1.1 |
|
|
81
|
+
| heading | 600 | 32px | 1.25 |
|
|
82
|
+
| body | 400 | 17px | 1.65 |
|
|
83
|
+
| code | 400 | 16px | 1.5 |
|
|
84
|
+
| accent | 600 | 12px | 1.4 |
|
|
85
|
+
|
|
86
|
+
## Espaçamento
|
|
87
|
+
|
|
88
|
+
Grid de 8px: `2 · 4 · 8 · 16 · 24 · 32 · 48 · 64`
|
|
Binary file
|
|
Binary file
|
package/assets/logo.png
ADDED
|
Binary file
|