@govbr-ds/design 4.0.0-next.31
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/LICENSE +21 -0
- package/README.md +73 -0
- package/dist/govbr-ds.css +1588 -0
- package/dist/govbr-ds.min.css +1 -0
- package/dist/govbr-utilities-lite.css +2811 -0
- package/dist/govbr-utilities-lite.min.css +1 -0
- package/dist/govbr-utilities.css +12667 -0
- package/dist/govbr-utilities.min.css +1 -0
- package/dist/modules/color.css +5674 -0
- package/dist/modules/elevation.css +113 -0
- package/dist/modules/flexbox.css +696 -0
- package/dist/modules/grid.css +518 -0
- package/dist/modules/motion.css +95 -0
- package/dist/modules/spacing.css +3928 -0
- package/dist/modules/surface.css +646 -0
- package/dist/modules/typography.css +706 -0
- package/package.json +65 -0
- package/src/core/_contrast.scss +2 -0
- package/src/core/_foundation.scss +227 -0
- package/src/core/_responsive.scss +9 -0
- package/src/core/_states.scss +121 -0
- package/src/core/_theme.scss +7 -0
- package/src/core/_tokens.scss +2 -0
- package/src/core/_utils.scss +116 -0
- package/src/core/govbr-ds.scss +9 -0
- package/src/utilities/_color.scss +139 -0
- package/src/utilities/_elevation.scss +47 -0
- package/src/utilities/_flexbox.scss +147 -0
- package/src/utilities/_grid.scss +137 -0
- package/src/utilities/_lite-config.scss +41 -0
- package/src/utilities/_lite-helpers.scss +137 -0
- package/src/utilities/_motion.scss +50 -0
- package/src/utilities/_responsive.scss +49 -0
- package/src/utilities/_spacing.scss +148 -0
- package/src/utilities/_surface.scss +135 -0
- package/src/utilities/_typography.scss +150 -0
- package/src/utilities/_utilities-generator.scss +61 -0
- package/src/utilities/govbr-utilities-lite.scss +4 -0
- package/src/utilities/govbr-utilities.scss +8 -0
- package/src/utilities/modules/color.scss +5 -0
- package/src/utilities/modules/elevation.scss +13 -0
- package/src/utilities/modules/flexbox.scss +13 -0
- package/src/utilities/modules/grid.scss +13 -0
- package/src/utilities/modules/motion.scss +5 -0
- package/src/utilities/modules/spacing.scss +13 -0
- package/src/utilities/modules/surface.scss +13 -0
- package/src/utilities/modules/typography.scss +13 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2022 SERPRO
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
# @govbr-ds/design
|
|
2
|
+
|
|
3
|
+
Este pacote fornece os estilos fundamentais, temas e utilitários CSS do Padrão Digital de Governo. Os arquivos compilados estão disponíveis no diretório `dist` do pacote publicado.
|
|
4
|
+
|
|
5
|
+
## Instalação
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install @govbr-ds/design
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Uso
|
|
12
|
+
|
|
13
|
+
Importe o CSS fundamental e, quando necessário, os utilitários:
|
|
14
|
+
|
|
15
|
+
```html
|
|
16
|
+
<link rel="stylesheet" href="node_modules/@govbr-ds/design/dist/govbr-ds.min.css" />
|
|
17
|
+
<link rel="stylesheet" href="node_modules/@govbr-ds/design/dist/govbr-utilities.min.css" />
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
Para uma versão menor, use `govbr-utilities-lite.min.css`. Os temas, o modo contraste e as opções de uso estão detalhados no [Guia de Uso](docs/guia-de-uso.md).
|
|
21
|
+
|
|
22
|
+
Os módulos de utilitários também podem ser carregados individualmente a partir de `dist/modules/`. Consulte o [Guia de Utilitários](docs/guia-utilitarios.md) para conhecer as classes disponíveis.
|
|
23
|
+
|
|
24
|
+
## Desenvolvimento
|
|
25
|
+
|
|
26
|
+
No monorepo, gere os arquivos de distribuição com:
|
|
27
|
+
|
|
28
|
+
```bash
|
|
29
|
+
pnpm --filter @govbr-ds/design build
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
O build gera os arquivos Sass, processa e minifica o CSS, executa o Stylelint e roda os testes.
|
|
33
|
+
|
|
34
|
+
## Documentação
|
|
35
|
+
|
|
36
|
+
- [Guia de Uso](docs/guia-de-uso.md);
|
|
37
|
+
- [Guia de Utilitários](docs/guia-utilitarios.md);
|
|
38
|
+
- [Módulos de utilitários](docs/).
|
|
39
|
+
|
|
40
|
+
## Estrutura de arquivos
|
|
41
|
+
|
|
42
|
+
```text
|
|
43
|
+
dist/
|
|
44
|
+
├── govbr-ds.css
|
|
45
|
+
├── govbr-ds.min.css
|
|
46
|
+
├── govbr-utilities.css
|
|
47
|
+
├── govbr-utilities.min.css
|
|
48
|
+
├── govbr-utilities-lite.css
|
|
49
|
+
├── govbr-utilities-lite.min.css
|
|
50
|
+
└── modules/
|
|
51
|
+
docs/
|
|
52
|
+
├── guia-de-uso.md
|
|
53
|
+
├── guia-utilitarios.md
|
|
54
|
+
└── modulo-*.md
|
|
55
|
+
src/
|
|
56
|
+
├── core/
|
|
57
|
+
└── utilities/
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
## Tecnologias
|
|
61
|
+
|
|
62
|
+
- [Sass](https://sass-lang.com/): pré-processamento dos estilos;
|
|
63
|
+
- [PostCSS](https://postcss.org/): processamento e otimização CSS;
|
|
64
|
+
- [Jest](https://jestjs.io/): testes automatizados.
|
|
65
|
+
|
|
66
|
+
## Suporte
|
|
67
|
+
|
|
68
|
+
- Site do Padrão Digital de Governo: <https://gov.br/ds>;
|
|
69
|
+
- Discord: <https://discord.gg/NkaVZERAT7>.
|
|
70
|
+
|
|
71
|
+
## Licença
|
|
72
|
+
|
|
73
|
+
Este projeto é distribuído sob a licença MIT.
|