@jfalava/ui-brand 0.0.0-stage → 0.2.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.
Files changed (81) hide show
  1. package/LICENSE +21 -0
  2. package/LICENSES/OFL-1.1-Google-Sans-Code.txt +93 -0
  3. package/LICENSES/OFL-1.1-IBM-Plex-Sans.txt +93 -0
  4. package/LICENSES/OFL-1.1-Zilla-Slab.txt +93 -0
  5. package/README.md +42 -2
  6. package/base.css +71 -0
  7. package/brand.css +11 -0
  8. package/classes.css +149 -0
  9. package/fonts/google-sans-code-adlam-400-2e89443ab8.woff2 +0 -0
  10. package/fonts/google-sans-code-adlam-500-a5a67a2d01.woff2 +0 -0
  11. package/fonts/google-sans-code-adlam-600-ab908b20a8.woff2 +0 -0
  12. package/fonts/google-sans-code-adlam-700-40c8a2fc73.woff2 +0 -0
  13. package/fonts/google-sans-code-adlam-800-2337c3cfc6.woff2 +0 -0
  14. package/fonts/google-sans-code-canadian-aboriginal-400-d18ea9ec8c.woff2 +0 -0
  15. package/fonts/google-sans-code-canadian-aboriginal-500-9d144d77d6.woff2 +0 -0
  16. package/fonts/google-sans-code-canadian-aboriginal-600-8088514370.woff2 +0 -0
  17. package/fonts/google-sans-code-canadian-aboriginal-700-dee14e32e9.woff2 +0 -0
  18. package/fonts/google-sans-code-canadian-aboriginal-800-9e6c0abba1.woff2 +0 -0
  19. package/fonts/google-sans-code-cherokee-400-b08ac7ec8b.woff2 +0 -0
  20. package/fonts/google-sans-code-cherokee-500-88e17c8d7e.woff2 +0 -0
  21. package/fonts/google-sans-code-cherokee-600-d2119feb21.woff2 +0 -0
  22. package/fonts/google-sans-code-cherokee-700-c32f95698e.woff2 +0 -0
  23. package/fonts/google-sans-code-cherokee-800-eb6ac88b1a.woff2 +0 -0
  24. package/fonts/google-sans-code-latin-400-4fb87d098d.woff2 +0 -0
  25. package/fonts/google-sans-code-latin-500-ff3c3d8251.woff2 +0 -0
  26. package/fonts/google-sans-code-latin-600-1592db137a.woff2 +0 -0
  27. package/fonts/google-sans-code-latin-700-ccaea4537d.woff2 +0 -0
  28. package/fonts/google-sans-code-latin-800-b89067a5ca.woff2 +0 -0
  29. package/fonts/google-sans-code-latin-ext-400-44fc8ced9b.woff2 +0 -0
  30. package/fonts/google-sans-code-latin-ext-500-3177e8b3a0.woff2 +0 -0
  31. package/fonts/google-sans-code-latin-ext-600-66735eae4c.woff2 +0 -0
  32. package/fonts/google-sans-code-latin-ext-700-69078ac73a.woff2 +0 -0
  33. package/fonts/google-sans-code-latin-ext-800-748d1be707.woff2 +0 -0
  34. package/fonts/google-sans-code-math-400-c8198dcfd8.woff2 +0 -0
  35. package/fonts/google-sans-code-math-500-b03861cafa.woff2 +0 -0
  36. package/fonts/google-sans-code-math-600-3b7a39bd11.woff2 +0 -0
  37. package/fonts/google-sans-code-math-700-802abd1e4b.woff2 +0 -0
  38. package/fonts/google-sans-code-math-800-802e0b79d6.woff2 +0 -0
  39. package/fonts/google-sans-code-old-permic-400-16afc5210c.woff2 +0 -0
  40. package/fonts/google-sans-code-old-permic-500-a394589c49.woff2 +0 -0
  41. package/fonts/google-sans-code-old-permic-600-bd83c9c770.woff2 +0 -0
  42. package/fonts/google-sans-code-old-permic-700-ca8dcae36e.woff2 +0 -0
  43. package/fonts/google-sans-code-old-permic-800-5387b00504.woff2 +0 -0
  44. package/fonts/google-sans-code-symbols-400-1d2016bcbb.woff2 +0 -0
  45. package/fonts/google-sans-code-symbols-500-00032d1a3e.woff2 +0 -0
  46. package/fonts/google-sans-code-symbols-600-9d3c725468.woff2 +0 -0
  47. package/fonts/google-sans-code-symbols-700-dd5c34d615.woff2 +0 -0
  48. package/fonts/google-sans-code-symbols-800-a8e999602c.woff2 +0 -0
  49. package/fonts/google-sans-code-symbols2-400-9d88888548.woff2 +0 -0
  50. package/fonts/google-sans-code-symbols2-500-bc407e7c14.woff2 +0 -0
  51. package/fonts/google-sans-code-symbols2-600-ee8e5b6d8c.woff2 +0 -0
  52. package/fonts/google-sans-code-symbols2-700-27791a44f1.woff2 +0 -0
  53. package/fonts/google-sans-code-symbols2-800-d80d0eee3d.woff2 +0 -0
  54. package/fonts/google-sans-code-syriac-400-2670480fe4.woff2 +0 -0
  55. package/fonts/google-sans-code-syriac-500-76aa0b1fc6.woff2 +0 -0
  56. package/fonts/google-sans-code-syriac-600-e196167fe3.woff2 +0 -0
  57. package/fonts/google-sans-code-syriac-700-d3ebab02af.woff2 +0 -0
  58. package/fonts/google-sans-code-syriac-800-e894079827.woff2 +0 -0
  59. package/fonts/google-sans-code-vietnamese-400-cc068d6206.woff2 +0 -0
  60. package/fonts/google-sans-code-vietnamese-500-c155fc9092.woff2 +0 -0
  61. package/fonts/google-sans-code-vietnamese-600-4dd36974ff.woff2 +0 -0
  62. package/fonts/google-sans-code-vietnamese-700-6bebadf850.woff2 +0 -0
  63. package/fonts/google-sans-code-vietnamese-800-1cb8c62c68.woff2 +0 -0
  64. package/fonts/ibm-plex-sans-cyrillic-ext-wght-normal-7d0037a170.woff2 +0 -0
  65. package/fonts/ibm-plex-sans-cyrillic-wght-normal-9409ee2181.woff2 +0 -0
  66. package/fonts/ibm-plex-sans-greek-wght-normal-f598dd0700.woff2 +0 -0
  67. package/fonts/ibm-plex-sans-latin-ext-wght-normal-d160e20920.woff2 +0 -0
  68. package/fonts/ibm-plex-sans-latin-wght-normal-e2291e842c.woff2 +0 -0
  69. package/fonts/ibm-plex-sans-vietnamese-wght-normal-73e7f7b1c9.woff2 +0 -0
  70. package/fonts/zilla-slab-latin-400-ab2607313b.woff2 +0 -0
  71. package/fonts/zilla-slab-latin-500-993eac5cf2.woff2 +0 -0
  72. package/fonts/zilla-slab-latin-600-fd78ed9406.woff2 +0 -0
  73. package/fonts/zilla-slab-latin-700-896b6ebb8c.woff2 +0 -0
  74. package/fonts/zilla-slab-latin-ext-400-488c114d0c.woff2 +0 -0
  75. package/fonts/zilla-slab-latin-ext-500-2870101587.woff2 +0 -0
  76. package/fonts/zilla-slab-latin-ext-600-9449fbfd64.woff2 +0 -0
  77. package/fonts/zilla-slab-latin-ext-700-f0a80835a6.woff2 +0 -0
  78. package/fonts.css +866 -0
  79. package/package.json +60 -4
  80. package/tailwind.css +129 -0
  81. package/tokens.css +103 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Jorge Fernando Álava
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.
@@ -0,0 +1,93 @@
1
+ Copyright 2025 The Google Sans Code Project Authors (github.com/googlefonts/googlesans-code) GoogleSansCode-Italic[MONO,wght].ttf: Copyright 2025 The Google Sans Code Project Authors (github.com/googlefonts/googlesans-code)
2
+
3
+ This Font Software is licensed under the SIL Open Font License, Version 1.1.
4
+ This license is copied below, and is also available with a FAQ at:
5
+ http://scripts.sil.org/OFL
6
+
7
+
8
+ -----------------------------------------------------------
9
+ SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
10
+ -----------------------------------------------------------
11
+
12
+ PREAMBLE
13
+ The goals of the Open Font License (OFL) are to stimulate worldwide
14
+ development of collaborative font projects, to support the font creation
15
+ efforts of academic and linguistic communities, and to provide a free and
16
+ open framework in which fonts may be shared and improved in partnership
17
+ with others.
18
+
19
+ The OFL allows the licensed fonts to be used, studied, modified and
20
+ redistributed freely as long as they are not sold by themselves. The
21
+ fonts, including any derivative works, can be bundled, embedded,
22
+ redistributed and/or sold with any software provided that any reserved
23
+ names are not used by derivative works. The fonts and derivatives,
24
+ however, cannot be released under any other type of license. The
25
+ requirement for fonts to remain under this license does not apply
26
+ to any document created using the fonts or their derivatives.
27
+
28
+ DEFINITIONS
29
+ "Font Software" refers to the set of files released by the Copyright
30
+ Holder(s) under this license and clearly marked as such. This may
31
+ include source files, build scripts and documentation.
32
+
33
+ "Reserved Font Name" refers to any names specified as such after the
34
+ copyright statement(s).
35
+
36
+ "Original Version" refers to the collection of Font Software components as
37
+ distributed by the Copyright Holder(s).
38
+
39
+ "Modified Version" refers to any derivative made by adding to, deleting,
40
+ or substituting -- in part or in whole -- any of the components of the
41
+ Original Version, by changing formats or by porting the Font Software to a
42
+ new environment.
43
+
44
+ "Author" refers to any designer, engineer, programmer, technical
45
+ writer or other person who contributed to the Font Software.
46
+
47
+ PERMISSION & CONDITIONS
48
+ Permission is hereby granted, free of charge, to any person obtaining
49
+ a copy of the Font Software, to use, study, copy, merge, embed, modify,
50
+ redistribute, and sell modified and unmodified copies of the Font
51
+ Software, subject to the following conditions:
52
+
53
+ 1) Neither the Font Software nor any of its individual components,
54
+ in Original or Modified Versions, may be sold by itself.
55
+
56
+ 2) Original or Modified Versions of the Font Software may be bundled,
57
+ redistributed and/or sold with any software, provided that each copy
58
+ contains the above copyright notice and this license. These can be
59
+ included either as stand-alone text files, human-readable headers or
60
+ in the appropriate machine-readable metadata fields within text or
61
+ binary files as long as those fields can be easily viewed by the user.
62
+
63
+ 3) No Modified Version of the Font Software may use the Reserved Font
64
+ Name(s) unless explicit written permission is granted by the corresponding
65
+ Copyright Holder. This restriction only applies to the primary font name as
66
+ presented to the users.
67
+
68
+ 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
69
+ Software shall not be used to promote, endorse or advertise any
70
+ Modified Version, except to acknowledge the contribution(s) of the
71
+ Copyright Holder(s) and the Author(s) or with their explicit written
72
+ permission.
73
+
74
+ 5) The Font Software, modified or unmodified, in part or in whole,
75
+ must be distributed entirely under this license, and must not be
76
+ distributed under any other license. The requirement for fonts to
77
+ remain under this license does not apply to any document created
78
+ using the Font Software.
79
+
80
+ TERMINATION
81
+ This license becomes null and void if any of the above conditions are
82
+ not met.
83
+
84
+ DISCLAIMER
85
+ THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
86
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
87
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
88
+ OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
89
+ COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
90
+ INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
91
+ DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
92
+ FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
93
+ OTHER DEALINGS IN THE FONT SOFTWARE.
@@ -0,0 +1,93 @@
1
+ Copyright 2019 IBM Corp. All rights reserved. IBMPlexSans-Italic[wdth,wght].ttf: Copyright 2019 IBM Corp. All rights reserved.
2
+
3
+ This Font Software is licensed under the SIL Open Font License, Version 1.1.
4
+ This license is copied below, and is also available with a FAQ at:
5
+ http://scripts.sil.org/OFL
6
+
7
+
8
+ -----------------------------------------------------------
9
+ SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
10
+ -----------------------------------------------------------
11
+
12
+ PREAMBLE
13
+ The goals of the Open Font License (OFL) are to stimulate worldwide
14
+ development of collaborative font projects, to support the font creation
15
+ efforts of academic and linguistic communities, and to provide a free and
16
+ open framework in which fonts may be shared and improved in partnership
17
+ with others.
18
+
19
+ The OFL allows the licensed fonts to be used, studied, modified and
20
+ redistributed freely as long as they are not sold by themselves. The
21
+ fonts, including any derivative works, can be bundled, embedded,
22
+ redistributed and/or sold with any software provided that any reserved
23
+ names are not used by derivative works. The fonts and derivatives,
24
+ however, cannot be released under any other type of license. The
25
+ requirement for fonts to remain under this license does not apply
26
+ to any document created using the fonts or their derivatives.
27
+
28
+ DEFINITIONS
29
+ "Font Software" refers to the set of files released by the Copyright
30
+ Holder(s) under this license and clearly marked as such. This may
31
+ include source files, build scripts and documentation.
32
+
33
+ "Reserved Font Name" refers to any names specified as such after the
34
+ copyright statement(s).
35
+
36
+ "Original Version" refers to the collection of Font Software components as
37
+ distributed by the Copyright Holder(s).
38
+
39
+ "Modified Version" refers to any derivative made by adding to, deleting,
40
+ or substituting -- in part or in whole -- any of the components of the
41
+ Original Version, by changing formats or by porting the Font Software to a
42
+ new environment.
43
+
44
+ "Author" refers to any designer, engineer, programmer, technical
45
+ writer or other person who contributed to the Font Software.
46
+
47
+ PERMISSION & CONDITIONS
48
+ Permission is hereby granted, free of charge, to any person obtaining
49
+ a copy of the Font Software, to use, study, copy, merge, embed, modify,
50
+ redistribute, and sell modified and unmodified copies of the Font
51
+ Software, subject to the following conditions:
52
+
53
+ 1) Neither the Font Software nor any of its individual components,
54
+ in Original or Modified Versions, may be sold by itself.
55
+
56
+ 2) Original or Modified Versions of the Font Software may be bundled,
57
+ redistributed and/or sold with any software, provided that each copy
58
+ contains the above copyright notice and this license. These can be
59
+ included either as stand-alone text files, human-readable headers or
60
+ in the appropriate machine-readable metadata fields within text or
61
+ binary files as long as those fields can be easily viewed by the user.
62
+
63
+ 3) No Modified Version of the Font Software may use the Reserved Font
64
+ Name(s) unless explicit written permission is granted by the corresponding
65
+ Copyright Holder. This restriction only applies to the primary font name as
66
+ presented to the users.
67
+
68
+ 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
69
+ Software shall not be used to promote, endorse or advertise any
70
+ Modified Version, except to acknowledge the contribution(s) of the
71
+ Copyright Holder(s) and the Author(s) or with their explicit written
72
+ permission.
73
+
74
+ 5) The Font Software, modified or unmodified, in part or in whole,
75
+ must be distributed entirely under this license, and must not be
76
+ distributed under any other license. The requirement for fonts to
77
+ remain under this license does not apply to any document created
78
+ using the Font Software.
79
+
80
+ TERMINATION
81
+ This license becomes null and void if any of the above conditions are
82
+ not met.
83
+
84
+ DISCLAIMER
85
+ THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
86
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
87
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
88
+ OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
89
+ COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
90
+ INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
91
+ DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
92
+ FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
93
+ OTHER DEALINGS IN THE FONT SOFTWARE.
@@ -0,0 +1,93 @@
1
+ Copyright 2017, The Mozilla Foundation ZillaSlab-LightItalic.ttf: Copyright 2017, The Mozilla Foundation ZillaSlab-Regular.ttf: Copyright 2017, The Mozilla Foundation ZillaSlab-Italic.ttf: Copyright 2017, The Mozilla Foundation ZillaSlab-Medium.ttf: Copyright 2017, The Mozilla Foundation ZillaSlab-MediumItalic.ttf: Copyright 2017, The Mozilla Foundation ZillaSlab-SemiBold.ttf: Copyright 2017, The Mozilla Foundation ZillaSlab-SemiBoldItalic.ttf: Copyright 2017, The Mozilla Foundation ZillaSlab-Bold.ttf: Copyright 2017, The Mozilla Foundation ZillaSlab-BoldItalic.ttf: Copyright 2017, The Mozilla Foundation
2
+
3
+ This Font Software is licensed under the SIL Open Font License, Version 1.1.
4
+ This license is copied below, and is also available with a FAQ at:
5
+ http://scripts.sil.org/OFL
6
+
7
+
8
+ -----------------------------------------------------------
9
+ SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
10
+ -----------------------------------------------------------
11
+
12
+ PREAMBLE
13
+ The goals of the Open Font License (OFL) are to stimulate worldwide
14
+ development of collaborative font projects, to support the font creation
15
+ efforts of academic and linguistic communities, and to provide a free and
16
+ open framework in which fonts may be shared and improved in partnership
17
+ with others.
18
+
19
+ The OFL allows the licensed fonts to be used, studied, modified and
20
+ redistributed freely as long as they are not sold by themselves. The
21
+ fonts, including any derivative works, can be bundled, embedded,
22
+ redistributed and/or sold with any software provided that any reserved
23
+ names are not used by derivative works. The fonts and derivatives,
24
+ however, cannot be released under any other type of license. The
25
+ requirement for fonts to remain under this license does not apply
26
+ to any document created using the fonts or their derivatives.
27
+
28
+ DEFINITIONS
29
+ "Font Software" refers to the set of files released by the Copyright
30
+ Holder(s) under this license and clearly marked as such. This may
31
+ include source files, build scripts and documentation.
32
+
33
+ "Reserved Font Name" refers to any names specified as such after the
34
+ copyright statement(s).
35
+
36
+ "Original Version" refers to the collection of Font Software components as
37
+ distributed by the Copyright Holder(s).
38
+
39
+ "Modified Version" refers to any derivative made by adding to, deleting,
40
+ or substituting -- in part or in whole -- any of the components of the
41
+ Original Version, by changing formats or by porting the Font Software to a
42
+ new environment.
43
+
44
+ "Author" refers to any designer, engineer, programmer, technical
45
+ writer or other person who contributed to the Font Software.
46
+
47
+ PERMISSION & CONDITIONS
48
+ Permission is hereby granted, free of charge, to any person obtaining
49
+ a copy of the Font Software, to use, study, copy, merge, embed, modify,
50
+ redistribute, and sell modified and unmodified copies of the Font
51
+ Software, subject to the following conditions:
52
+
53
+ 1) Neither the Font Software nor any of its individual components,
54
+ in Original or Modified Versions, may be sold by itself.
55
+
56
+ 2) Original or Modified Versions of the Font Software may be bundled,
57
+ redistributed and/or sold with any software, provided that each copy
58
+ contains the above copyright notice and this license. These can be
59
+ included either as stand-alone text files, human-readable headers or
60
+ in the appropriate machine-readable metadata fields within text or
61
+ binary files as long as those fields can be easily viewed by the user.
62
+
63
+ 3) No Modified Version of the Font Software may use the Reserved Font
64
+ Name(s) unless explicit written permission is granted by the corresponding
65
+ Copyright Holder. This restriction only applies to the primary font name as
66
+ presented to the users.
67
+
68
+ 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
69
+ Software shall not be used to promote, endorse or advertise any
70
+ Modified Version, except to acknowledge the contribution(s) of the
71
+ Copyright Holder(s) and the Author(s) or with their explicit written
72
+ permission.
73
+
74
+ 5) The Font Software, modified or unmodified, in part or in whole,
75
+ must be distributed entirely under this license, and must not be
76
+ distributed under any other license. The requirement for fonts to
77
+ remain under this license does not apply to any document created
78
+ using the Font Software.
79
+
80
+ TERMINATION
81
+ This license becomes null and void if any of the above conditions are
82
+ not met.
83
+
84
+ DISCLAIMER
85
+ THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
86
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
87
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
88
+ OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
89
+ COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
90
+ INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
91
+ DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
92
+ FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
93
+ OTHER DEALINGS IN THE FONT SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,43 @@
1
- # Temporary Holding Version
1
+ # @jfalava/ui-brand
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ jfalava's brand in plain CSS, with no dependencies: colours, radius, type sizes, fonts, element
4
+ defaults, type roles and layout classes. `jfa.dev/common/src/styles.css` and `fonts.css` are the
5
+ canon; this package carries the same values.
6
+
7
+ ## Without Tailwind
8
+
9
+ ```css
10
+ @import "@jfalava/ui-brand"; /* everything below, in this order */
11
+ ```
12
+
13
+ | File | What it holds |
14
+ | ------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
15
+ | `fonts.css` | IBM Plex Sans (UI), Zilla Slab (text people type) and Google Sans Code (code, keys) |
16
+ | `tokens.css` | `--jfa-*` colours, radius, small type sizes and font stacks; dark values on and under `.dark` or `[data-mode="dark"]` |
17
+ | `base.css` | Element defaults: page colours and fonts, dotted links, Zilla Slab in inputs, border-box sizing |
18
+ | `classes.css` | Type roles (`type-page-title`, `type-section-title`, `type-body`, `type-ui`, `type-compact`, `type-meta`, `type-label`), layout classes (`app-frame`, `page-gutters`, `header-gutters`, `reading-measure`) and jfa.dev's `ui-input` and `ui-button` defaults |
19
+ | `brand.css` | All of the above; the package's main entry |
20
+
21
+ Import single files to take only part of it, such as `@jfalava/ui-brand/tokens.css` to map the
22
+ tokens onto your own names (`--nb-background: var(--jfa-background)`). To keep the brand below your
23
+ own styles, import it into a cascade layer: `@import "@jfalava/ui-brand" layer(brand);`.
24
+
25
+ ## With Tailwind CSS v4
26
+
27
+ ```css
28
+ @import "tailwindcss";
29
+ @import "@jfalava/ui-brand/tailwind.css";
30
+ @source "./components";
31
+ ```
32
+
33
+ `tailwind.css` adds the theme names (`bg-background`, `text-primary`, `rounded-lg`, `font-serif`,
34
+ `text-kbd` ...) and `dark:` under `.dark` or `[data-mode="dark"]`, and imports the plain files into
35
+ Tailwind's base and components layers, so a utility on an element overrides a role. jfa.dev's
36
+ own Tailwind classes compute the same styles with this file as with jfa.dev's.
37
+
38
+ ## Fonts
39
+
40
+ `fonts.css` names its files relative to itself (`./fonts/...`), so build with a bundler that
41
+ rewrites CSS URLs, such as Vite (which Astro and `@tailwindcss/vite` use). The Tailwind CLI inlines
42
+ the file without rewriting them. The fonts are under the SIL Open Font License 1.1, with the texts
43
+ in `LICENSES/`; the rest of the package is MIT.
package/base.css ADDED
@@ -0,0 +1,71 @@
1
+ /*
2
+ * Element defaults, in plain CSS: page colours and fonts, dotted links, and Zilla Slab for text
3
+ * people type. Tailwind builds import this file into its base layer (see tailwind.css).
4
+ *
5
+ * Border-box sizing, links in the text colour and form controls in the page colours are what
6
+ * Tailwind's preflight sets too; the brand's classes rely on them, so they are here for sites
7
+ * without Tailwind. Nothing else from preflight is: margins and lists keep the browser's styles.
8
+ */
9
+
10
+ *,
11
+ ::before,
12
+ ::after {
13
+ box-sizing: border-box;
14
+ }
15
+
16
+ * {
17
+ border-color: var(--jfa-border);
18
+ outline-color: color-mix(in oklab, var(--jfa-ring) 50%, transparent);
19
+ }
20
+
21
+ html {
22
+ min-width: 320px;
23
+ background-color: var(--jfa-background);
24
+ font-family: var(--jfa-font-sans);
25
+ }
26
+
27
+ body {
28
+ margin: 0;
29
+ min-width: 320px;
30
+ background-color: var(--jfa-background);
31
+ font-family: var(--jfa-font-sans);
32
+ color: var(--jfa-foreground);
33
+ -webkit-font-smoothing: antialiased;
34
+ -moz-osx-font-smoothing: grayscale;
35
+ }
36
+
37
+ a {
38
+ color: inherit;
39
+ text-decoration-line: underline;
40
+ text-decoration-style: dotted;
41
+ text-underline-offset: 4px;
42
+ transition-property:
43
+ color, background-color, border-color, outline-color, text-decoration-color, fill, stroke;
44
+ transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
45
+ transition-duration: 150ms;
46
+ }
47
+
48
+ @media (hover: hover) {
49
+ a:hover {
50
+ text-decoration-style: solid;
51
+ }
52
+ }
53
+
54
+ .site-header :where(a, button) {
55
+ text-decoration-line: none;
56
+ }
57
+
58
+ button,
59
+ input,
60
+ textarea,
61
+ select {
62
+ font: inherit;
63
+ color: inherit;
64
+ background-color: transparent;
65
+ }
66
+
67
+ input,
68
+ textarea,
69
+ [contenteditable="true"] {
70
+ font-family: var(--jfa-font-serif);
71
+ }
package/brand.css ADDED
@@ -0,0 +1,11 @@
1
+ /*
2
+ * The whole brand without Tailwind: fonts, tokens, element defaults and the classes (type roles,
3
+ * layout classes, jfa.dev's input and button defaults). Import it as `@jfalava/ui-brand`. To keep
4
+ * it below your own styles, import it into a cascade layer:
5
+ * `@import "@jfalava/ui-brand" layer(brand);`.
6
+ */
7
+
8
+ @import "./fonts.css";
9
+ @import "./tokens.css";
10
+ @import "./base.css";
11
+ @import "./classes.css";
package/classes.css ADDED
@@ -0,0 +1,149 @@
1
+ /*
2
+ * The brand's classes, in plain CSS: jfa.dev's input and button defaults, then the type roles and
3
+ * layout classes. Every selector has one class's specificity, so a role wins over the input
4
+ * defaults by coming later, and anything you add after this file wins over both. Tailwind builds
5
+ * import it into the components layer (see tailwind.css), where every utility on the element wins.
6
+ */
7
+
8
+ /* Input and button defaults: intentional title typography and larger minimums win. */
9
+ .ui-input {
10
+ font-size: 0.875rem;
11
+ line-height: calc(1.25 / 0.875);
12
+ }
13
+
14
+ @media (width >= 48rem) {
15
+ .ui-input {
16
+ font-size: 0.75rem;
17
+ line-height: 1.625;
18
+ }
19
+ }
20
+
21
+ .ui-button:where(.density-comfortable),
22
+ .ui-input:where(.density-comfortable) {
23
+ min-height: 2.75rem;
24
+ }
25
+
26
+ .ui-button:where(.density-comfortable) {
27
+ min-width: 2.75rem;
28
+ touch-action: manipulation;
29
+ }
30
+
31
+ .ui-input:where(.density-comfortable) {
32
+ font-size: 1rem;
33
+ line-height: 1.5;
34
+ }
35
+
36
+ @media (width < 48rem) {
37
+ .ui-button:where(.density-auto),
38
+ .ui-input:where(.density-auto) {
39
+ min-height: 2.75rem;
40
+ }
41
+
42
+ .ui-button:where(.density-auto) {
43
+ min-width: 2.75rem;
44
+ touch-action: manipulation;
45
+ }
46
+
47
+ .ui-input:where(.density-auto) {
48
+ font-size: 1rem;
49
+ line-height: 1.5;
50
+ }
51
+ }
52
+
53
+ /* Roles preserve the existing display hierarchy; artwork and Docs keep their own scales. */
54
+ .type-page-title,
55
+ .type-section-title {
56
+ font-family: var(--jfa-font-sans);
57
+ line-height: 0.95;
58
+ font-weight: 600;
59
+ letter-spacing: -0.05em;
60
+ text-transform: uppercase;
61
+ }
62
+
63
+ .type-page-title {
64
+ font-size: 2.25rem;
65
+ }
66
+
67
+ .type-section-title {
68
+ font-size: 1.5rem;
69
+ }
70
+
71
+ @media (width >= 40rem) {
72
+ .type-page-title {
73
+ font-size: 3.75rem;
74
+ }
75
+
76
+ .type-section-title {
77
+ font-size: 1.875rem;
78
+ }
79
+ }
80
+
81
+ .type-body {
82
+ font-size: 1rem;
83
+ line-height: 1.625;
84
+ }
85
+
86
+ .type-ui {
87
+ font-size: 0.875rem;
88
+ line-height: 1.5;
89
+ }
90
+
91
+ .type-compact,
92
+ .type-meta {
93
+ font-size: 0.75rem;
94
+ line-height: 1.625;
95
+ }
96
+
97
+ .type-meta {
98
+ color: var(--jfa-muted-foreground);
99
+ }
100
+
101
+ /* Field captions, column headers and status tags; callers choose the color. The line height
102
+ comes from the parent. */
103
+ .type-label {
104
+ font-family: var(--jfa-font-mono);
105
+ font-size: var(--jfa-text-label);
106
+ letter-spacing: 0.08em;
107
+ text-transform: uppercase;
108
+ }
109
+
110
+ .app-frame {
111
+ margin-inline: auto;
112
+ width: 100%;
113
+ max-width: 96rem;
114
+ border-inline-style: solid;
115
+ border-inline-width: 1px;
116
+ border-color: var(--jfa-border);
117
+ }
118
+
119
+ .header-gutters {
120
+ padding-inline: 0.5rem;
121
+ }
122
+
123
+ .page-gutters {
124
+ padding-inline: 1rem;
125
+ }
126
+
127
+ @media (width >= 40rem) {
128
+ .header-gutters {
129
+ padding-inline: 0.75rem;
130
+ }
131
+
132
+ .page-gutters {
133
+ padding-inline: 1.5rem;
134
+ }
135
+ }
136
+
137
+ @media (width >= 64rem) {
138
+ .header-gutters {
139
+ padding-inline: 1rem;
140
+ }
141
+
142
+ .page-gutters {
143
+ padding-inline: 2rem;
144
+ }
145
+ }
146
+
147
+ .reading-measure {
148
+ max-width: 65ch;
149
+ }