@knitli/docs-components 1.1.2 → 1.1.4

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 (73) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/README.md +6 -6
  3. package/dist/assets/logos/Thread_vector_mono_aubergine.svg +41 -0
  4. package/dist/assets/logos/Thread_vector_mono_copper.svg +41 -0
  5. package/dist/assets/logos/Thread_vector_mono_parchment.svg +41 -0
  6. package/dist/assets/logos/codeweaver-primary.svg +103 -0
  7. package/dist/assets/logos/codeweaver-reverse.svg +103 -0
  8. package/dist/assets/logos/headline_logo.webp +0 -0
  9. package/dist/assets/logos/headline_logo_dark.png +0 -0
  10. package/dist/assets/logos/headline_logo_dark.webp +0 -0
  11. package/dist/assets/logos/index.d.ts +36 -0
  12. package/dist/assets/logos/index.d.ts.map +1 -0
  13. package/dist/assets/logos/index.js +27 -0
  14. package/dist/assets/logos/knitli_logo.svg +143 -0
  15. package/dist/assets/logos/knitli_wordmark.svg +118 -0
  16. package/dist/assets/logos/recoco-med.webp +0 -0
  17. package/dist/assets/logos/recoco-sm.webp +0 -0
  18. package/dist/assets/logos/recoco-xl.webp +0 -0
  19. package/dist/assets/styles/codeweaver-theme.css +570 -0
  20. package/dist/assets/styles/global.css +166 -0
  21. package/dist/assets/styles/index.d.ts +15 -0
  22. package/dist/assets/styles/index.d.ts.map +1 -0
  23. package/dist/assets/styles/index.js +14 -0
  24. package/dist/assets/styles/knitli-theme.css +215 -0
  25. package/dist/assets/styles/textures.css +668 -0
  26. package/dist/assets/styles/typography.css +262 -0
  27. package/dist/assets/styles/variables.css +238 -0
  28. package/dist/index.d.ts +40 -0
  29. package/dist/index.d.ts.map +1 -0
  30. package/dist/index.js +36 -0
  31. package/dist/styles/index.d.ts +2 -0
  32. package/dist/styles/index.d.ts.map +1 -0
  33. package/dist/styles/index.js +2 -0
  34. package/dist/types/index.d.ts +35 -0
  35. package/dist/types/index.d.ts.map +1 -0
  36. package/dist/types/index.js +7 -0
  37. package/package.json +49 -48
  38. package/scripts/copy-assets.mjs +37 -0
  39. package/scripts/copy-dist-assets.mjs +30 -0
  40. package/src/assets/asset-types.d.ts +29 -0
  41. package/src/assets/logos/Thread_vector_mono_aubergine.svg +41 -0
  42. package/src/assets/logos/Thread_vector_mono_copper.svg +41 -0
  43. package/src/assets/logos/Thread_vector_mono_parchment.svg +41 -0
  44. package/src/assets/logos/codeweaver-primary.svg +103 -0
  45. package/src/assets/logos/codeweaver-reverse.svg +103 -0
  46. package/src/assets/logos/headline_logo.webp +0 -0
  47. package/src/assets/logos/headline_logo_dark.png +0 -0
  48. package/src/assets/logos/headline_logo_dark.webp +0 -0
  49. package/src/assets/logos/index.ts +43 -0
  50. package/src/assets/logos/knitli_logo.svg +143 -0
  51. package/src/assets/logos/knitli_wordmark.svg +118 -0
  52. package/src/assets/logos/recoco-med.webp +0 -0
  53. package/src/assets/logos/recoco-sm.webp +0 -0
  54. package/src/assets/logos/recoco-xl.webp +0 -0
  55. package/src/assets/styles/codeweaver-theme.css +570 -0
  56. package/src/assets/styles/global.css +166 -0
  57. package/src/assets/styles/index.ts +26 -0
  58. package/src/assets/styles/knitli-theme.css +215 -0
  59. package/src/assets/styles/textures.css +668 -0
  60. package/src/assets/styles/typography.css +262 -0
  61. package/src/assets/styles/variables.css +238 -0
  62. package/src/components/DocsBreadcrumb.astro +74 -74
  63. package/src/components/Footer.astro +252 -216
  64. package/src/components/PageFrame.astro +118 -111
  65. package/src/index.d.ts +32 -0
  66. package/src/index.ts +46 -6
  67. package/src/styles/custom.css +73 -0
  68. package/src/styles/custom.d.css.ts +8 -0
  69. package/src/styles/index.ts +3 -0
  70. package/src/types/index.ts +2 -45
  71. package/src/assets/logos/README.md +0 -180
  72. package/src/styles/docs-theme.css +0 -682
  73. package/src/styles/variables.css +0 -200
@@ -1,180 +0,0 @@
1
- # Knitli Logo Usage Guidelines
2
-
3
- This directory contains the official Knitli logo assets for use in documentation components.
4
-
5
- ## Logo Variants
6
-
7
- ### Standard Logo (`knitli-logo.svg`)
8
- - **Colors**: Aubergine text (#1e061b) with rust knot accent (#ea5932)
9
- - **Use cases**:
10
- - General documentation headers
11
- - Light backgrounds
12
- - Standard brand representation
13
- - Navigation elements
14
-
15
- ### Copper Logo (`knitli-logo-copper.svg`)
16
- - **Colors**: Full copper (#b56c30) for both text and knot
17
- - **Use cases**:
18
- - CodeWeaver/technical documentation theme
19
- - Integration with docs aesthetic
20
- - Technical content headers
21
- - Engineering-focused materials
22
-
23
- ## Size Recommendations
24
-
25
- ### Minimum Dimensions
26
- - **Minimum height**: 24px (for legibility)
27
- - **Minimum width**: 81px (maintains aspect ratio)
28
- - **Recommended base**: 32px height for standard UI elements
29
-
30
- ### Common Sizes
31
- ```css
32
- /* Small (navigation, inline) */
33
- height: 24px;
34
- width: auto;
35
-
36
- /* Medium (section headers) */
37
- height: 32px;
38
- width: auto;
39
-
40
- /* Large (page headers) */
41
- height: 48px;
42
- width: auto;
43
-
44
- /* Hero/landing */
45
- height: 64px;
46
- width: auto;
47
- ```
48
-
49
- ## Accessibility
50
-
51
- ### Alt Text
52
- Always include descriptive alt text for screen readers:
53
-
54
- ```html
55
- <!-- Standard implementation -->
56
- <img src="knitli-logo.svg" alt="Knitli" />
57
-
58
- <!-- With link (navigation) -->
59
- <a href="https://knitli.com">
60
- <img src="knitli-logo.svg" alt="Knitli home" />
61
- </a>
62
-
63
- <!-- Decorative only (rare) -->
64
- <img src="knitli-logo.svg" alt="" role="presentation" />
65
- ```
66
-
67
- ### Link Navigation
68
- When using the logo as a navigation element, always link to the main site:
69
-
70
- ```html
71
- <a href="https://knitli.com" aria-label="Return to Knitli homepage">
72
- <img src="knitli-logo.svg" alt="Knitli" />
73
- </a>
74
- ```
75
-
76
- ## Usage Examples
77
-
78
- ### Astro Component
79
- ```astro
80
- ---
81
- import knitliLogo from '../assets/logos/knitli-logo.svg';
82
- import knitliLogoCopper from '../assets/logos/knitli-logo-copper.svg';
83
- ---
84
-
85
- <!-- Standard header -->
86
- <header>
87
- <a href="https://knitli.com">
88
- <img src={knitliLogo.src} alt="Knitli" height="32" />
89
- </a>
90
- </header>
91
-
92
- <!-- Docs theme header -->
93
- <header class="docs-header">
94
- <a href="https://knitli.com">
95
- <img src={knitliLogoCopper.src} alt="Knitli" height="32" />
96
- </a>
97
- </header>
98
- ```
99
-
100
- ### HTML/CSS
101
- ```html
102
- <!-- Responsive with CSS sizing -->
103
- <a href="https://knitli.com" class="logo-link">
104
- <img src="./logos/knitli-logo.svg" alt="Knitli" class="logo" />
105
- </a>
106
-
107
- <style>
108
- .logo {
109
- height: 2rem; /* 32px */
110
- width: auto;
111
- display: block;
112
- }
113
-
114
- .logo-link {
115
- display: inline-flex;
116
- align-items: center;
117
- text-decoration: none;
118
- }
119
-
120
- .logo-link:hover .logo,
121
- .logo-link:focus .logo {
122
- opacity: 0.85;
123
- transition: opacity 0.2s ease;
124
- }
125
- </style>
126
- ```
127
-
128
- ### React/TypeScript
129
- ```tsx
130
- import knitliLogo from '../assets/logos/knitli-logo.svg';
131
-
132
- export function Logo() {
133
- return (
134
- <a href="https://knitli.com" aria-label="Return to Knitli homepage">
135
- <img
136
- src={knitliLogo}
137
- alt="Knitli"
138
- style={{ height: '32px', width: 'auto' }}
139
- />
140
- </a>
141
- );
142
- }
143
- ```
144
-
145
- ## Technical Details
146
-
147
- ### File Format
148
- - **Format**: SVG (Scalable Vector Graphics)
149
- - **Optimization**: Cleaned of unnecessary metadata and comments
150
- - **Viewbox**: `0 0 425.64246 125`
151
- - **Native aspect ratio**: ~3.4:1 (width:height)
152
-
153
- ### Color Values
154
- ```css
155
- /* Standard Logo */
156
- --logo-text: #1e061b; /* Aubergine */
157
- --logo-knot: #ea5932; /* Rust */
158
-
159
- /* Copper Logo */
160
- --logo-copper: #b56c30; /* Copper */
161
- ```
162
-
163
- ### Inline Styling
164
- Both logos use CSS classes (`.text`, `.knot`) for color application, allowing for potential theme customization if needed.
165
-
166
- ## Best Practices
167
-
168
- 1. **Always use vector format** - Never convert to raster unless absolutely necessary
169
- 2. **Maintain aspect ratio** - Set either width OR height, let the other auto-scale
170
- 3. **Respect minimum size** - Never display smaller than 24px height
171
- 4. **Use semantic HTML** - Wrap in `<a>` tag when used for navigation
172
- 5. **Provide context** - Use appropriate alt text for the use case
173
- 6. **Consider contrast** - Ensure sufficient contrast with background colors
174
- 7. **Test accessibility** - Verify screen reader announcements
175
-
176
- ## Copyright
177
-
178
- © 2025 Knitli Inc. All Rights Reserved.
179
-
180
- Original design by Adam/Signcraft (DesignCrowd), owned by Knitli Inc.