heraspec 0.1.12 → 0.1.14
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 +22 -22
- package/README.md +188 -103
- package/bin/heraspec.js +4805 -1122
- package/bin/heraspec.js.map +4 -4
- package/dist/core/templates/skills/CHANGELOG.md +117 -117
- package/dist/core/templates/skills/README-template.md +58 -58
- package/dist/core/templates/skills/README.md +38 -38
- package/dist/core/templates/skills/content-optimization-skill.md +104 -104
- package/dist/core/templates/skills/data/design-systems.csv +54 -0
- package/dist/core/templates/skills/data/pages-proposed.csv +21 -21
- package/dist/core/templates/skills/data/pages.csv +9 -9
- package/dist/core/templates/skills/data/typography.csv +57 -57
- package/dist/core/templates/skills/deploy-documentation-skill.md +408 -0
- package/dist/core/templates/skills/design-system-skill.md +176 -0
- package/dist/core/templates/skills/documents/templates/documentation-landing-page.html +63 -63
- package/dist/core/templates/skills/documents/templates/documentation.html +49 -49
- package/dist/core/templates/skills/documents/templates/landing-script.js +38 -38
- package/dist/core/templates/skills/documents/templates/landing-style.css +158 -158
- package/dist/core/templates/skills/documents/templates/script.js +56 -56
- package/dist/core/templates/skills/documents/templates/style.css +155 -155
- package/dist/core/templates/skills/documents/templates/technical-doc-template.md +16 -16
- package/dist/core/templates/skills/documents/templates/user-guide-template.md +16 -16
- package/dist/core/templates/skills/documents-skill.md +104 -104
- package/dist/core/templates/skills/e2e-test-skill.md +119 -119
- package/dist/core/templates/skills/git-embed-skill.md +57 -0
- package/dist/core/templates/skills/integration-test-skill.md +118 -118
- package/dist/core/templates/skills/knowledge/README.md +63 -0
- package/dist/core/templates/skills/knowledge/design-systems/airbnb/DESIGN.md +246 -0
- package/dist/core/templates/skills/knowledge/design-systems/airtable/DESIGN.md +89 -0
- package/dist/core/templates/skills/knowledge/design-systems/apple/DESIGN.md +313 -0
- package/dist/core/templates/skills/knowledge/design-systems/bmw/DESIGN.md +180 -0
- package/dist/core/templates/skills/knowledge/design-systems/cal/DESIGN.md +259 -0
- package/dist/core/templates/skills/knowledge/design-systems/claude/DESIGN.md +312 -0
- package/dist/core/templates/skills/knowledge/design-systems/clay/DESIGN.md +304 -0
- package/dist/core/templates/skills/knowledge/design-systems/clickhouse/DESIGN.md +281 -0
- package/dist/core/templates/skills/knowledge/design-systems/cohere/DESIGN.md +266 -0
- package/dist/core/templates/skills/knowledge/design-systems/coinbase/DESIGN.md +129 -0
- package/dist/core/templates/skills/knowledge/design-systems/composio/DESIGN.md +307 -0
- package/dist/core/templates/skills/knowledge/design-systems/cursor/DESIGN.md +309 -0
- package/dist/core/templates/skills/knowledge/design-systems/elevenlabs/DESIGN.md +265 -0
- package/dist/core/templates/skills/knowledge/design-systems/expo/DESIGN.md +281 -0
- package/dist/core/templates/skills/knowledge/design-systems/figma/DESIGN.md +220 -0
- package/dist/core/templates/skills/knowledge/design-systems/framer/DESIGN.md +246 -0
- package/dist/core/templates/skills/knowledge/design-systems/hashicorp/DESIGN.md +278 -0
- package/dist/core/templates/skills/knowledge/design-systems/ibm/DESIGN.md +332 -0
- package/dist/core/templates/skills/knowledge/design-systems/index.json +72 -0
- package/dist/core/templates/skills/knowledge/design-systems/intercom/DESIGN.md +146 -0
- package/dist/core/templates/skills/knowledge/design-systems/kraken/DESIGN.md +125 -0
- package/dist/core/templates/skills/knowledge/design-systems/linear.app/DESIGN.md +367 -0
- package/dist/core/templates/skills/knowledge/design-systems/lovable/DESIGN.md +298 -0
- package/dist/core/templates/skills/knowledge/design-systems/minimax/DESIGN.md +257 -0
- package/dist/core/templates/skills/knowledge/design-systems/mintlify/DESIGN.md +326 -0
- package/dist/core/templates/skills/knowledge/design-systems/miro/DESIGN.md +108 -0
- package/dist/core/templates/skills/knowledge/design-systems/mistral.ai/DESIGN.md +261 -0
- package/dist/core/templates/skills/knowledge/design-systems/mongodb/DESIGN.md +266 -0
- package/dist/core/templates/skills/knowledge/design-systems/notion/DESIGN.md +309 -0
- package/dist/core/templates/skills/knowledge/design-systems/nvidia/DESIGN.md +293 -0
- package/dist/core/templates/skills/knowledge/design-systems/ollama/DESIGN.md +267 -0
- package/dist/core/templates/skills/knowledge/design-systems/opencode.ai/DESIGN.md +281 -0
- package/dist/core/templates/skills/knowledge/design-systems/pinterest/DESIGN.md +230 -0
- package/dist/core/templates/skills/knowledge/design-systems/posthog/DESIGN.md +256 -0
- package/dist/core/templates/skills/knowledge/design-systems/raycast/DESIGN.md +268 -0
- package/dist/core/templates/skills/knowledge/design-systems/replicate/DESIGN.md +261 -0
- package/dist/core/templates/skills/knowledge/design-systems/resend/DESIGN.md +303 -0
- package/dist/core/templates/skills/knowledge/design-systems/revolut/DESIGN.md +185 -0
- package/dist/core/templates/skills/knowledge/design-systems/runwayml/DESIGN.md +244 -0
- package/dist/core/templates/skills/knowledge/design-systems/sanity/DESIGN.md +357 -0
- package/dist/core/templates/skills/knowledge/design-systems/sentry/DESIGN.md +262 -0
- package/dist/core/templates/skills/knowledge/design-systems/spacex/DESIGN.md +194 -0
- package/dist/core/templates/skills/knowledge/design-systems/spotify/DESIGN.md +246 -0
- package/dist/core/templates/skills/knowledge/design-systems/stripe/DESIGN.md +322 -0
- package/dist/core/templates/skills/knowledge/design-systems/supabase/DESIGN.md +255 -0
- package/dist/core/templates/skills/knowledge/design-systems/superhuman/DESIGN.md +252 -0
- package/dist/core/templates/skills/knowledge/design-systems/together.ai/DESIGN.md +263 -0
- package/dist/core/templates/skills/knowledge/design-systems/uber/DESIGN.md +295 -0
- package/dist/core/templates/skills/knowledge/design-systems/vercel/DESIGN.md +310 -0
- package/dist/core/templates/skills/knowledge/design-systems/voltagent/DESIGN.md +323 -0
- package/dist/core/templates/skills/knowledge/design-systems/warp/DESIGN.md +253 -0
- package/dist/core/templates/skills/knowledge/design-systems/webflow/DESIGN.md +92 -0
- package/dist/core/templates/skills/knowledge/design-systems/wise/DESIGN.md +173 -0
- package/dist/core/templates/skills/knowledge/design-systems/x.ai/DESIGN.md +257 -0
- package/dist/core/templates/skills/knowledge/design-systems/zapier/DESIGN.md +328 -0
- package/dist/core/templates/skills/knowledge/frameworks/php/codeigniter/rise-cms/profile.json +27 -0
- package/dist/core/templates/skills/knowledge/frameworks/php/codeigniter/rise-cms/structure.md +137 -0
- package/dist/core/templates/skills/knowledge/frameworks/php/laravel/botble/profile.json +39 -0
- package/dist/core/templates/skills/knowledge/frameworks/php/laravel/botble/structure.md +208 -0
- package/dist/core/templates/skills/knowledge/frameworks/php/wordpress/core/profile.json +51 -0
- package/dist/core/templates/skills/knowledge/frameworks/php/wordpress/core/structure.md +369 -0
- package/dist/core/templates/skills/knowledge/index.json +65 -0
- package/dist/core/templates/skills/module-codebase-skill.md +110 -110
- package/dist/core/templates/skills/plugin-directory-skill.md +396 -396
- package/dist/core/templates/skills/project-memory-skill.md +222 -0
- package/dist/core/templates/skills/project-memory-skill.vi.md +223 -0
- package/dist/core/templates/skills/scripts/CODE_EXPLANATION.md +394 -394
- package/dist/core/templates/skills/scripts/SEARCH_ALGORITHMS_COMPARISON.md +421 -421
- package/dist/core/templates/skills/scripts/SEARCH_MODES_GUIDE.md +238 -238
- package/dist/core/templates/skills/scripts/__pycache__/core.cpython-311.pyc +0 -0
- package/dist/core/templates/skills/scripts/core.py +391 -385
- package/dist/core/templates/skills/scripts/search.py +1 -1
- package/dist/core/templates/skills/smart-explore-skill.md +141 -0
- package/dist/core/templates/skills/sourcecode-analyzer-skill.md +210 -0
- package/dist/core/templates/skills/sourcecode-analyzer-skill.vi.md +210 -0
- package/dist/core/templates/skills/suggestion-skill.md +118 -118
- package/dist/core/templates/skills/templates/accessibility-checklist.md +40 -40
- package/dist/core/templates/skills/templates/example-prompt-full-theme.md +333 -333
- package/dist/core/templates/skills/templates/page-types-guide.md +338 -338
- package/dist/core/templates/skills/templates/pages-proposed-summary.md +273 -273
- package/dist/core/templates/skills/templates/pre-delivery-checklist.md +42 -42
- package/dist/core/templates/skills/templates/prompt-template-full-theme.md +313 -313
- package/dist/core/templates/skills/templates/responsive-design.md +40 -40
- package/dist/core/templates/skills/ui-ux-skill.md +595 -584
- package/dist/core/templates/skills/unit-test-skill.md +111 -111
- package/dist/core/templates/skills/ux-element/templates/Controller.php +50 -50
- package/dist/core/templates/skills/ux-element/templates/Shortcode.php +23 -23
- package/dist/core/templates/skills/ux-element/templates/Template.html +20 -20
- package/dist/core/templates/skills/ux-element/templates/Thumbnail.svg +8 -8
- package/dist/core/templates/skills/ux-element/templates/View.php +21 -21
- package/dist/core/templates/skills/ux-element-skill.md +83 -83
- package/dist/core/templates/skills/wordpress-plugin-check-skill.md +151 -76
- package/dist/core/templates/skills/wordpress-plugin-standard/templates/admin-dashboard.php +47 -47
- package/dist/core/templates/skills/wordpress-plugin-standard/templates/admin-settings.php +60 -60
- package/dist/core/templates/skills/wordpress-plugin-standard/templates/assets/admin-css.css +22 -22
- package/dist/core/templates/skills/wordpress-plugin-standard/templates/assets/admin-js.js +15 -15
- package/dist/core/templates/skills/wordpress-plugin-standard/templates/plugin-main.php +169 -169
- package/dist/core/templates/skills/wordpress-plugin-standard/templates/readme.txt +41 -41
- package/dist/core/templates/skills/wordpress-plugin-standard/templates/uninstall.php +21 -21
- package/dist/core/templates/skills/wordpress-plugin-standard-skill.md +100 -100
- package/dist/index.js +4068 -278
- package/package.json +75 -72
|
@@ -1,118 +1,118 @@
|
|
|
1
|
-
# Skill: Integration Testing (Cross-Cutting)
|
|
2
|
-
|
|
3
|
-
## Purpose
|
|
4
|
-
|
|
5
|
-
This skill is used to create integration tests that verify how different components work together. Integration tests check interactions between modules, services, databases, and external APIs.
|
|
6
|
-
|
|
7
|
-
## When to Use
|
|
8
|
-
|
|
9
|
-
- When testing component interactions
|
|
10
|
-
- When testing API endpoints
|
|
11
|
-
- When testing database operations
|
|
12
|
-
- When testing service integrations
|
|
13
|
-
- When verifying data flow between components
|
|
14
|
-
- When testing with real dependencies (not mocks)
|
|
15
|
-
|
|
16
|
-
## Step-by-Step Process
|
|
17
|
-
|
|
18
|
-
### Step 1: Identify Integration Points
|
|
19
|
-
- Map component dependencies
|
|
20
|
-
- Identify external services and APIs
|
|
21
|
-
- List database operations
|
|
22
|
-
- Determine integration boundaries
|
|
23
|
-
- Identify critical integration paths
|
|
24
|
-
|
|
25
|
-
### Step 2: Set Up Test Environment
|
|
26
|
-
- Configure test database
|
|
27
|
-
- Set up test services/mocks for external APIs
|
|
28
|
-
- Configure test environment variables
|
|
29
|
-
- Prepare test data fixtures
|
|
30
|
-
- Set up cleanup procedures
|
|
31
|
-
|
|
32
|
-
### Step 3: Write Integration Tests
|
|
33
|
-
- Create test files for integration scenarios
|
|
34
|
-
- Test component interactions
|
|
35
|
-
- Test API endpoints with real requests
|
|
36
|
-
- Test database operations
|
|
37
|
-
- Test error handling across components
|
|
38
|
-
- Use test fixtures for consistent data
|
|
39
|
-
|
|
40
|
-
### Step 4: Run and Verify
|
|
41
|
-
- Run integration tests
|
|
42
|
-
- Verify test isolation (tests don't affect each other)
|
|
43
|
-
- Check test execution time
|
|
44
|
-
- Ensure proper cleanup after tests
|
|
45
|
-
- Verify tests pass consistently
|
|
46
|
-
|
|
47
|
-
### Step 5: Maintain Tests
|
|
48
|
-
- Update tests when interfaces change
|
|
49
|
-
- Keep test data synchronized
|
|
50
|
-
- Document test scenarios
|
|
51
|
-
- Monitor test execution time
|
|
52
|
-
|
|
53
|
-
## Required Input
|
|
54
|
-
|
|
55
|
-
- **Components**: List of components to integrate
|
|
56
|
-
- **APIs**: API endpoints to test
|
|
57
|
-
- **Database schema**: Database structure for testing
|
|
58
|
-
- **External services**: External services to mock or use
|
|
59
|
-
- **Test data**: Sample data for testing
|
|
60
|
-
|
|
61
|
-
## Expected Output
|
|
62
|
-
|
|
63
|
-
- Integration test files
|
|
64
|
-
- Test scenarios covering integration paths
|
|
65
|
-
- Test fixtures and setup code
|
|
66
|
-
- Passing integration test suite
|
|
67
|
-
- Documentation of integration test scenarios
|
|
68
|
-
|
|
69
|
-
## Tone & Rules
|
|
70
|
-
|
|
71
|
-
### Test Scope
|
|
72
|
-
- Test real interactions between components
|
|
73
|
-
- Use real databases (test database)
|
|
74
|
-
- Mock external services that can't be controlled
|
|
75
|
-
- Test error propagation across boundaries
|
|
76
|
-
|
|
77
|
-
### Test Data
|
|
78
|
-
- Use consistent test fixtures
|
|
79
|
-
- Clean up test data after tests
|
|
80
|
-
- Use transactions for database tests when possible
|
|
81
|
-
- Isolate tests to prevent interference
|
|
82
|
-
|
|
83
|
-
### Performance
|
|
84
|
-
- Integration tests are slower than unit tests
|
|
85
|
-
- Run integration tests separately from unit tests
|
|
86
|
-
- Use test database (not production)
|
|
87
|
-
- Consider test execution time
|
|
88
|
-
|
|
89
|
-
### Limitations
|
|
90
|
-
- ❌ DO NOT use production database
|
|
91
|
-
- ❌ DO NOT test with real external APIs in CI (use mocks)
|
|
92
|
-
- ❌ DO NOT write tests that depend on test execution order
|
|
93
|
-
- ❌ DO NOT skip cleanup (tests must be isolated)
|
|
94
|
-
- ❌ DO NOT test implementation details
|
|
95
|
-
|
|
96
|
-
## Available Templates
|
|
97
|
-
|
|
98
|
-
- `templates/integration-test-template.js` - JavaScript integration test template
|
|
99
|
-
- `templates/integration-test-template.php` - PHP integration test template
|
|
100
|
-
- `templates/integration-test-template.py` - Python integration test template
|
|
101
|
-
|
|
102
|
-
## Available Scripts
|
|
103
|
-
|
|
104
|
-
- `scripts/setup-test-db.sh` - Set up test database
|
|
105
|
-
- `scripts/seed-test-data.sh` - Seed test data
|
|
106
|
-
|
|
107
|
-
## Examples
|
|
108
|
-
|
|
109
|
-
See `examples/` directory for reference:
|
|
110
|
-
- `good-integration-test/` - Well-structured integration tests
|
|
111
|
-
- `bad-integration-test/` - Examples to avoid
|
|
112
|
-
|
|
113
|
-
## Links to Other Skills
|
|
114
|
-
|
|
115
|
-
- **unit-test**: Use unit tests before integration tests
|
|
116
|
-
- **e2e-test**: Use for end-to-end user scenarios
|
|
117
|
-
- **documents**: Use to document integration test strategy
|
|
118
|
-
|
|
1
|
+
# Skill: Integration Testing (Cross-Cutting)
|
|
2
|
+
|
|
3
|
+
## Purpose
|
|
4
|
+
|
|
5
|
+
This skill is used to create integration tests that verify how different components work together. Integration tests check interactions between modules, services, databases, and external APIs.
|
|
6
|
+
|
|
7
|
+
## When to Use
|
|
8
|
+
|
|
9
|
+
- When testing component interactions
|
|
10
|
+
- When testing API endpoints
|
|
11
|
+
- When testing database operations
|
|
12
|
+
- When testing service integrations
|
|
13
|
+
- When verifying data flow between components
|
|
14
|
+
- When testing with real dependencies (not mocks)
|
|
15
|
+
|
|
16
|
+
## Step-by-Step Process
|
|
17
|
+
|
|
18
|
+
### Step 1: Identify Integration Points
|
|
19
|
+
- Map component dependencies
|
|
20
|
+
- Identify external services and APIs
|
|
21
|
+
- List database operations
|
|
22
|
+
- Determine integration boundaries
|
|
23
|
+
- Identify critical integration paths
|
|
24
|
+
|
|
25
|
+
### Step 2: Set Up Test Environment
|
|
26
|
+
- Configure test database
|
|
27
|
+
- Set up test services/mocks for external APIs
|
|
28
|
+
- Configure test environment variables
|
|
29
|
+
- Prepare test data fixtures
|
|
30
|
+
- Set up cleanup procedures
|
|
31
|
+
|
|
32
|
+
### Step 3: Write Integration Tests
|
|
33
|
+
- Create test files for integration scenarios
|
|
34
|
+
- Test component interactions
|
|
35
|
+
- Test API endpoints with real requests
|
|
36
|
+
- Test database operations
|
|
37
|
+
- Test error handling across components
|
|
38
|
+
- Use test fixtures for consistent data
|
|
39
|
+
|
|
40
|
+
### Step 4: Run and Verify
|
|
41
|
+
- Run integration tests
|
|
42
|
+
- Verify test isolation (tests don't affect each other)
|
|
43
|
+
- Check test execution time
|
|
44
|
+
- Ensure proper cleanup after tests
|
|
45
|
+
- Verify tests pass consistently
|
|
46
|
+
|
|
47
|
+
### Step 5: Maintain Tests
|
|
48
|
+
- Update tests when interfaces change
|
|
49
|
+
- Keep test data synchronized
|
|
50
|
+
- Document test scenarios
|
|
51
|
+
- Monitor test execution time
|
|
52
|
+
|
|
53
|
+
## Required Input
|
|
54
|
+
|
|
55
|
+
- **Components**: List of components to integrate
|
|
56
|
+
- **APIs**: API endpoints to test
|
|
57
|
+
- **Database schema**: Database structure for testing
|
|
58
|
+
- **External services**: External services to mock or use
|
|
59
|
+
- **Test data**: Sample data for testing
|
|
60
|
+
|
|
61
|
+
## Expected Output
|
|
62
|
+
|
|
63
|
+
- Integration test files
|
|
64
|
+
- Test scenarios covering integration paths
|
|
65
|
+
- Test fixtures and setup code
|
|
66
|
+
- Passing integration test suite
|
|
67
|
+
- Documentation of integration test scenarios
|
|
68
|
+
|
|
69
|
+
## Tone & Rules
|
|
70
|
+
|
|
71
|
+
### Test Scope
|
|
72
|
+
- Test real interactions between components
|
|
73
|
+
- Use real databases (test database)
|
|
74
|
+
- Mock external services that can't be controlled
|
|
75
|
+
- Test error propagation across boundaries
|
|
76
|
+
|
|
77
|
+
### Test Data
|
|
78
|
+
- Use consistent test fixtures
|
|
79
|
+
- Clean up test data after tests
|
|
80
|
+
- Use transactions for database tests when possible
|
|
81
|
+
- Isolate tests to prevent interference
|
|
82
|
+
|
|
83
|
+
### Performance
|
|
84
|
+
- Integration tests are slower than unit tests
|
|
85
|
+
- Run integration tests separately from unit tests
|
|
86
|
+
- Use test database (not production)
|
|
87
|
+
- Consider test execution time
|
|
88
|
+
|
|
89
|
+
### Limitations
|
|
90
|
+
- ❌ DO NOT use production database
|
|
91
|
+
- ❌ DO NOT test with real external APIs in CI (use mocks)
|
|
92
|
+
- ❌ DO NOT write tests that depend on test execution order
|
|
93
|
+
- ❌ DO NOT skip cleanup (tests must be isolated)
|
|
94
|
+
- ❌ DO NOT test implementation details
|
|
95
|
+
|
|
96
|
+
## Available Templates
|
|
97
|
+
|
|
98
|
+
- `templates/integration-test-template.js` - JavaScript integration test template
|
|
99
|
+
- `templates/integration-test-template.php` - PHP integration test template
|
|
100
|
+
- `templates/integration-test-template.py` - Python integration test template
|
|
101
|
+
|
|
102
|
+
## Available Scripts
|
|
103
|
+
|
|
104
|
+
- `scripts/setup-test-db.sh` - Set up test database
|
|
105
|
+
- `scripts/seed-test-data.sh` - Seed test data
|
|
106
|
+
|
|
107
|
+
## Examples
|
|
108
|
+
|
|
109
|
+
See `examples/` directory for reference:
|
|
110
|
+
- `good-integration-test/` - Well-structured integration tests
|
|
111
|
+
- `bad-integration-test/` - Examples to avoid
|
|
112
|
+
|
|
113
|
+
## Links to Other Skills
|
|
114
|
+
|
|
115
|
+
- **unit-test**: Use unit tests before integration tests
|
|
116
|
+
- **e2e-test**: Use for end-to-end user scenarios
|
|
117
|
+
- **documents**: Use to document integration test strategy
|
|
118
|
+
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
# HeRaSpec Knowledge Base
|
|
2
|
+
|
|
3
|
+
Pre-analyzed profiles for frameworks, APIs, and platforms. When a skill (like `sourcecode-analyzer`) is invoked, it checks this knowledge base first to avoid redundant analysis.
|
|
4
|
+
|
|
5
|
+
## Structure
|
|
6
|
+
|
|
7
|
+
```
|
|
8
|
+
knowledge/
|
|
9
|
+
├── index.json ← Registry of all built-in entries
|
|
10
|
+
├── frameworks/ ← CMS/Framework architecture profiles
|
|
11
|
+
│ └── <runtime>/<framework>/<cms>/
|
|
12
|
+
│ ├── profile.json ← Metadata, match signals, key features
|
|
13
|
+
│ └── structure.md ← Pre-analyzed architecture report
|
|
14
|
+
├── apis/ ← Third-party API profiles (Shopify, QuickBooks, ...)
|
|
15
|
+
│ └── <provider>/
|
|
16
|
+
│ ├── profile.json
|
|
17
|
+
│ └── <analysis-files>
|
|
18
|
+
├── platforms/ ← Platform/infra knowledge (AWS, Vercel, ...)
|
|
19
|
+
│ └── <platform>/
|
|
20
|
+
│ ├── profile.json
|
|
21
|
+
│ └── <analysis-files>
|
|
22
|
+
└── custom/ ← User's custom knowledge (NEVER touched by CLI)
|
|
23
|
+
├── index.json ← Custom registry
|
|
24
|
+
└── ... ← User-managed entries
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
## Categories
|
|
28
|
+
|
|
29
|
+
| Category | Purpose | Example |
|
|
30
|
+
|----------|---------|---------|
|
|
31
|
+
| `frameworks` | CMS/Framework architecture profiles | Laravel/Botble, WordPress, Perfex CRM |
|
|
32
|
+
| `apis` | Third-party API specifications | Shopify API, QuickBooks API |
|
|
33
|
+
| `platforms` | Deployment/infrastructure knowledge | AWS, Vercel, Docker patterns |
|
|
34
|
+
|
|
35
|
+
## How Matching Works
|
|
36
|
+
|
|
37
|
+
Each entry in `index.json` has `matchSignals` — conditions checked against the current project:
|
|
38
|
+
|
|
39
|
+
| Signal Type | Description | Example |
|
|
40
|
+
|-------------|-------------|---------|
|
|
41
|
+
| `file-contains` | File exists AND contains string | `composer.json` contains `"botble"` |
|
|
42
|
+
| `directory-exists` | Directory exists in project | `platform/core` exists |
|
|
43
|
+
|
|
44
|
+
Each matched signal = +1 score. If `score >= minMatchScore`, the knowledge is considered a match.
|
|
45
|
+
|
|
46
|
+
## How Skills Use Knowledge
|
|
47
|
+
|
|
48
|
+
1. Skill reads `heraspec/knowledge/index.json`
|
|
49
|
+
2. Matches project against entries using signals
|
|
50
|
+
3. If matched: loads pre-analyzed report as baseline, focuses on project-specific delta
|
|
51
|
+
4. If no match: performs full analysis from scratch
|
|
52
|
+
|
|
53
|
+
## Custom Knowledge
|
|
54
|
+
|
|
55
|
+
Users can add project-specific knowledge in `heraspec/knowledge/custom/`:
|
|
56
|
+
|
|
57
|
+
1. Create entry directory under `custom/`
|
|
58
|
+
2. Add to `custom/index.json`
|
|
59
|
+
3. The CLI will **never** modify or delete anything in `custom/`
|
|
60
|
+
|
|
61
|
+
## Updating Knowledge
|
|
62
|
+
|
|
63
|
+
Run `heraspec init` to update built-in knowledge to the latest version. Custom entries are preserved.
|
|
@@ -0,0 +1,246 @@
|
|
|
1
|
+
# Design System: Airbnb
|
|
2
|
+
|
|
3
|
+
## 1. Visual Theme & Atmosphere
|
|
4
|
+
|
|
5
|
+
Airbnb's website is a warm, photography-forward marketplace that feels like flipping through a travel magazine where every page invites you to book. The design operates on a foundation of pure white (`#ffffff`) with the iconic Rausch Red (`#ff385c`) — named after Airbnb's first street address — serving as the singular brand accent. The result is a clean, airy canvas where listing photography, category icons, and the red CTA button are the only sources of color.
|
|
6
|
+
|
|
7
|
+
The typography uses Airbnb Cereal VF — a custom variable font that's warm and approachable, with rounded terminals that echo the brand's "belong anywhere" philosophy. The font operates in a tight weight range: 500 (medium) for most UI, 600 (semibold) for emphasis, and 700 (bold) for primary headings. Slight negative letter-spacing (-0.18px to -0.44px) on headings creates a cozy, intimate reading experience rather than the compressed efficiency of tech companies.
|
|
8
|
+
|
|
9
|
+
What distinguishes Airbnb is its palette-based token system (`--palette-*`) and multi-layered shadow approach. The primary card shadow uses a three-layer stack (`rgba(0,0,0,0.02) 0px 0px 0px 1px, rgba(0,0,0,0.04) 0px 2px 6px, rgba(0,0,0,0.1) 0px 4px 8px`) that creates a subtle, warm lift. Combined with generous border-radius (8px–32px), circular navigation controls (50%), and a category pill bar with horizontal scrolling, the interface feels tactile and inviting — designed for browsing, not commanding.
|
|
10
|
+
|
|
11
|
+
**Key Characteristics:**
|
|
12
|
+
- Pure white canvas with Rausch Red (`#ff385c`) as singular brand accent
|
|
13
|
+
- Airbnb Cereal VF — custom variable font with warm, rounded terminals
|
|
14
|
+
- Palette-based token system (`--palette-*`) for systematic color management
|
|
15
|
+
- Three-layer card shadows: border ring + soft blur + stronger blur
|
|
16
|
+
- Generous border-radius: 8px buttons, 14px badges, 20px cards, 32px large elements
|
|
17
|
+
- Circular navigation controls (50% radius)
|
|
18
|
+
- Photography-first listing cards — images are the hero content
|
|
19
|
+
- Near-black text (`#222222`) — warm, not cold
|
|
20
|
+
- Luxe Purple (`#460479`) and Plus Magenta (`#92174d`) for premium tiers
|
|
21
|
+
|
|
22
|
+
## 2. Color Palette & Roles
|
|
23
|
+
|
|
24
|
+
### Primary Brand
|
|
25
|
+
- **Rausch Red** (`#ff385c`): `--palette-bg-primary-core`, primary CTA, brand accent, active states
|
|
26
|
+
- **Deep Rausch** (`#e00b41`): `--palette-bg-tertiary-core`, pressed/dark variant of brand red
|
|
27
|
+
- **Error Red** (`#c13515`): `--palette-text-primary-error`, error text on light
|
|
28
|
+
- **Error Dark** (`#b32505`): `--palette-text-secondary-error-hover`, error hover
|
|
29
|
+
|
|
30
|
+
### Premium Tiers
|
|
31
|
+
- **Luxe Purple** (`#460479`): `--palette-bg-primary-luxe`, Airbnb Luxe tier branding
|
|
32
|
+
- **Plus Magenta** (`#92174d`): `--palette-bg-primary-plus`, Airbnb Plus tier branding
|
|
33
|
+
|
|
34
|
+
### Text Scale
|
|
35
|
+
- **Near Black** (`#222222`): `--palette-text-primary`, primary text — warm, not cold
|
|
36
|
+
- **Focused Gray** (`#3f3f3f`): `--palette-text-focused`, focused state text
|
|
37
|
+
- **Secondary Gray** (`#6a6a6a`): Secondary text, descriptions
|
|
38
|
+
- **Disabled** (`rgba(0,0,0,0.24)`): `--palette-text-material-disabled`, disabled state
|
|
39
|
+
- **Link Disabled** (`#929292`): `--palette-text-link-disabled`, disabled links
|
|
40
|
+
|
|
41
|
+
### Interactive
|
|
42
|
+
- **Legal Blue** (`#428bff`): `--palette-text-legal`, legal links, informational
|
|
43
|
+
- **Border Gray** (`#c1c1c1`): Border color for cards and dividers
|
|
44
|
+
- **Light Surface** (`#f2f2f2`): Circular navigation buttons, secondary surfaces
|
|
45
|
+
|
|
46
|
+
### Surface & Shadows
|
|
47
|
+
- **Pure White** (`#ffffff`): Page background, card surfaces
|
|
48
|
+
- **Card Shadow** (`rgba(0,0,0,0.02) 0px 0px 0px 1px, rgba(0,0,0,0.04) 0px 2px 6px, rgba(0,0,0,0.1) 0px 4px 8px`): Three-layer warm lift
|
|
49
|
+
- **Hover Shadow** (`rgba(0,0,0,0.08) 0px 4px 12px`): Button hover elevation
|
|
50
|
+
|
|
51
|
+
## 3. Typography Rules
|
|
52
|
+
|
|
53
|
+
### Font Family
|
|
54
|
+
- **Primary**: `Airbnb Cereal VF`, fallbacks: `Circular, -apple-system, system-ui, Roboto, Helvetica Neue`
|
|
55
|
+
- **OpenType Features**: `"salt"` (stylistic alternates) on specific caption elements
|
|
56
|
+
|
|
57
|
+
### Hierarchy
|
|
58
|
+
|
|
59
|
+
| Role | Font | Size | Weight | Line Height | Letter Spacing | Notes |
|
|
60
|
+
|------|------|------|--------|-------------|----------------|-------|
|
|
61
|
+
| Section Heading | Airbnb Cereal VF | 28px (1.75rem) | 700 | 1.43 | normal | Primary headings |
|
|
62
|
+
| Card Heading | Airbnb Cereal VF | 22px (1.38rem) | 600 | 1.18 (tight) | -0.44px | Category/card titles |
|
|
63
|
+
| Card Heading Medium | Airbnb Cereal VF | 22px (1.38rem) | 500 | 1.18 (tight) | -0.44px | Lighter variant |
|
|
64
|
+
| Sub-heading | Airbnb Cereal VF | 21px (1.31rem) | 700 | 1.43 | normal | Bold sub-headings |
|
|
65
|
+
| Feature Title | Airbnb Cereal VF | 20px (1.25rem) | 600 | 1.20 (tight) | -0.18px | Feature headings |
|
|
66
|
+
| UI Medium | Airbnb Cereal VF | 16px (1.00rem) | 500 | 1.25 (tight) | normal | Nav, emphasized text |
|
|
67
|
+
| UI Semibold | Airbnb Cereal VF | 16px (1.00rem) | 600 | 1.25 (tight) | normal | Strong emphasis |
|
|
68
|
+
| Button | Airbnb Cereal VF | 16px (1.00rem) | 500 | 1.25 (tight) | normal | Button labels |
|
|
69
|
+
| Body / Link | Airbnb Cereal VF | 14px (0.88rem) | 400 | 1.43 | normal | Standard body |
|
|
70
|
+
| Body Medium | Airbnb Cereal VF | 14px (0.88rem) | 500 | 1.29 (tight) | normal | Medium body |
|
|
71
|
+
| Caption Salt | Airbnb Cereal VF | 14px (0.88rem) | 600 | 1.43 | normal | `"salt"` feature |
|
|
72
|
+
| Small | Airbnb Cereal VF | 13px (0.81rem) | 400 | 1.23 (tight) | normal | Descriptions |
|
|
73
|
+
| Tag | Airbnb Cereal VF | 12px (0.75rem) | 400–700 | 1.33 | normal | Tags, prices |
|
|
74
|
+
| Badge | Airbnb Cereal VF | 11px (0.69rem) | 600 | 1.18 (tight) | normal | `"salt"` feature |
|
|
75
|
+
| Micro Uppercase | Airbnb Cereal VF | 8px (0.50rem) | 700 | 1.25 (tight) | 0.32px | `text-transform: uppercase` |
|
|
76
|
+
|
|
77
|
+
### Principles
|
|
78
|
+
- **Warm weight range**: 500–700 dominate. No weight 300 or 400 for headings — Airbnb's type is always at least medium weight, creating a warm, confident voice.
|
|
79
|
+
- **Negative tracking on headings**: -0.18px to -0.44px letter-spacing on display creates intimate, cozy headings rather than cold, compressed ones.
|
|
80
|
+
- **"salt" OpenType feature**: Stylistic alternates on specific UI elements (badges, captions) create subtle glyph variations that add visual interest.
|
|
81
|
+
- **Variable font precision**: Cereal VF enables continuous weight interpolation, though the design system uses discrete stops at 500, 600, and 700.
|
|
82
|
+
|
|
83
|
+
## 4. Component Stylings
|
|
84
|
+
|
|
85
|
+
### Buttons
|
|
86
|
+
|
|
87
|
+
**Primary Dark**
|
|
88
|
+
- Background: `#222222` (near-black, not pure black)
|
|
89
|
+
- Text: `#ffffff`
|
|
90
|
+
- Padding: 0px 24px
|
|
91
|
+
- Radius: 8px
|
|
92
|
+
- Hover: transitions to error/brand accent via `var(--accent-bg-error)`
|
|
93
|
+
- Focus: `0 0 0 2px var(--palette-grey1000)` ring + scale(0.92)
|
|
94
|
+
|
|
95
|
+
**Circular Nav**
|
|
96
|
+
- Background: `#f2f2f2`
|
|
97
|
+
- Text: `#222222`
|
|
98
|
+
- Radius: 50% (circle)
|
|
99
|
+
- Hover: shadow `rgba(0,0,0,0.08) 0px 4px 12px` + translateX(50%)
|
|
100
|
+
- Active: 4px white border ring + focus shadow
|
|
101
|
+
- Focus: scale(0.92) shrink animation
|
|
102
|
+
|
|
103
|
+
### Cards & Containers
|
|
104
|
+
- Background: `#ffffff`
|
|
105
|
+
- Radius: 14px (badges), 20px (cards/buttons), 32px (large)
|
|
106
|
+
- Shadow: `rgba(0,0,0,0.02) 0px 0px 0px 1px, rgba(0,0,0,0.04) 0px 2px 6px, rgba(0,0,0,0.1) 0px 4px 8px` (three-layer)
|
|
107
|
+
- Listing cards: full-width photography on top, details below
|
|
108
|
+
- Carousel controls: circular 50% buttons
|
|
109
|
+
|
|
110
|
+
### Inputs
|
|
111
|
+
- Search: `#222222` text
|
|
112
|
+
- Focus: `var(--palette-bg-primary-error)` background tint + `0 0 0 2px` ring
|
|
113
|
+
- Radius: depends on context (search bar uses pill-like rounding)
|
|
114
|
+
|
|
115
|
+
### Navigation
|
|
116
|
+
- White sticky header with search bar centered
|
|
117
|
+
- Airbnb logo (Rausch Red) left-aligned
|
|
118
|
+
- Category filter pills: horizontal scroll below search
|
|
119
|
+
- Circular nav controls for carousel navigation
|
|
120
|
+
- "Become a Host" text link, avatar/menu right-aligned
|
|
121
|
+
|
|
122
|
+
### Image Treatment
|
|
123
|
+
- Listing photography fills card top with generous height
|
|
124
|
+
- Image carousel with dot indicators
|
|
125
|
+
- Heart/wishlist icon overlay on images
|
|
126
|
+
- 8px–14px radius on contained images
|
|
127
|
+
|
|
128
|
+
## 5. Layout Principles
|
|
129
|
+
|
|
130
|
+
### Spacing System
|
|
131
|
+
- Base unit: 8px
|
|
132
|
+
- Scale: 2px, 3px, 4px, 6px, 8px, 10px, 11px, 12px, 15px, 16px, 22px, 24px, 32px
|
|
133
|
+
|
|
134
|
+
### Grid & Container
|
|
135
|
+
- Full-width header with centered search
|
|
136
|
+
- Category pill bar: horizontal scrollable row
|
|
137
|
+
- Listing grid: responsive multi-column (3–5 columns on desktop)
|
|
138
|
+
- Full-width footer with link columns
|
|
139
|
+
|
|
140
|
+
### Whitespace Philosophy
|
|
141
|
+
- **Travel-magazine spacing**: Generous vertical padding between sections creates a leisurely browsing pace — you're meant to scroll slowly, like browsing a magazine.
|
|
142
|
+
- **Photography density**: Listing cards are packed relatively tightly, but each image is large enough to feel immersive.
|
|
143
|
+
- **Search bar prominence**: The search bar gets maximum vertical space in the header — finding your destination is the primary action.
|
|
144
|
+
|
|
145
|
+
### Border Radius Scale
|
|
146
|
+
- Subtle (4px): Small links
|
|
147
|
+
- Standard (8px): Buttons, tabs, search elements
|
|
148
|
+
- Badge (14px): Status badges, labels
|
|
149
|
+
- Card (20px): Feature cards, large buttons
|
|
150
|
+
- Large (32px): Large containers, hero elements
|
|
151
|
+
- Circle (50%): Nav controls, avatars, icons
|
|
152
|
+
|
|
153
|
+
## 6. Depth & Elevation
|
|
154
|
+
|
|
155
|
+
| Level | Treatment | Use |
|
|
156
|
+
|-------|-----------|-----|
|
|
157
|
+
| Flat (Level 0) | No shadow | Page background, text blocks |
|
|
158
|
+
| Card (Level 1) | `rgba(0,0,0,0.02) 0px 0px 0px 1px, rgba(0,0,0,0.04) 0px 2px 6px, rgba(0,0,0,0.1) 0px 4px 8px` | Listing cards, search bar |
|
|
159
|
+
| Hover (Level 2) | `rgba(0,0,0,0.08) 0px 4px 12px` | Button hover, interactive lift |
|
|
160
|
+
| Active Focus (Level 3) | `rgb(255,255,255) 0px 0px 0px 4px` + focus ring | Active/focused elements |
|
|
161
|
+
|
|
162
|
+
**Shadow Philosophy**: Airbnb's three-layer shadow system creates a warm, natural lift. Layer 1 (`0px 0px 0px 1px` at 0.02 opacity) is an ultra-subtle border. Layer 2 (`0px 2px 6px` at 0.04) provides soft ambient shadow. Layer 3 (`0px 4px 8px` at 0.1) adds the primary lift. This graduated approach creates shadows that feel like natural light rather than CSS effects.
|
|
163
|
+
|
|
164
|
+
## 7. Do's and Don'ts
|
|
165
|
+
|
|
166
|
+
### Do
|
|
167
|
+
- Use `#222222` (warm near-black) for text — never pure `#000000`
|
|
168
|
+
- Apply Rausch Red (`#ff385c`) only for primary CTAs and brand moments — it's the singular accent
|
|
169
|
+
- Use Airbnb Cereal VF at weight 500–700 — the warm weight range is intentional
|
|
170
|
+
- Apply the three-layer card shadow for all elevated surfaces
|
|
171
|
+
- Use generous border-radius: 8px for buttons, 20px for cards, 50% for controls
|
|
172
|
+
- Use photography as the primary visual content — listings are image-first
|
|
173
|
+
- Apply negative letter-spacing (-0.18px to -0.44px) on headings for intimacy
|
|
174
|
+
- Use circular (50%) buttons for carousel/navigation controls
|
|
175
|
+
|
|
176
|
+
### Don't
|
|
177
|
+
- Don't use pure black (`#000000`) for text — always `#222222` (warm)
|
|
178
|
+
- Don't apply Rausch Red to backgrounds or large surfaces — it's an accent only
|
|
179
|
+
- Don't use thin font weights (300, 400) for headings — 500 minimum
|
|
180
|
+
- Don't use heavy shadows (>0.1 opacity as primary layer) — keep them warm and graduated
|
|
181
|
+
- Don't use sharp corners (0–4px) on cards — the generous rounding (20px+) is core
|
|
182
|
+
- Don't introduce additional brand colors beyond the Rausch/Luxe/Plus system
|
|
183
|
+
- Don't override the palette token system — use `--palette-*` variables consistently
|
|
184
|
+
|
|
185
|
+
## 8. Responsive Behavior
|
|
186
|
+
|
|
187
|
+
### Breakpoints
|
|
188
|
+
| Name | Width | Key Changes |
|
|
189
|
+
|------|-------|-------------|
|
|
190
|
+
| Mobile Small | <375px | Single column, compact search |
|
|
191
|
+
| Mobile | 375–550px | Standard mobile listing grid |
|
|
192
|
+
| Tablet Small | 550–744px | 2-column listings |
|
|
193
|
+
| Tablet | 744–950px | Search bar expansion |
|
|
194
|
+
| Desktop Small | 950–1128px | 3-column listings |
|
|
195
|
+
| Desktop | 1128–1440px | 4-column grid, full header |
|
|
196
|
+
| Large Desktop | 1440–1920px | 5-column grid |
|
|
197
|
+
| Ultra-wide | >1920px | Maximum grid width |
|
|
198
|
+
|
|
199
|
+
*Note: Airbnb has 61 detected breakpoints — one of the most granular responsive systems observed, reflecting their obsession with layout at every possible screen size.*
|
|
200
|
+
|
|
201
|
+
### Touch Targets
|
|
202
|
+
- Circular nav buttons: adequate 50% radius sizing
|
|
203
|
+
- Listing cards: full-card tap target on mobile
|
|
204
|
+
- Search bar: prominently sized for thumb interaction
|
|
205
|
+
- Category pills: horizontally scrollable with generous padding
|
|
206
|
+
|
|
207
|
+
### Collapsing Strategy
|
|
208
|
+
- Listing grid: 5 → 4 → 3 → 2 → 1 columns
|
|
209
|
+
- Search: expanded bar → compact bar → overlay
|
|
210
|
+
- Category pills: horizontal scroll at all sizes
|
|
211
|
+
- Navigation: full header → mobile simplified
|
|
212
|
+
- Map: side panel → overlay/toggle
|
|
213
|
+
|
|
214
|
+
### Image Behavior
|
|
215
|
+
- Listing photos: carousel with swipe on mobile
|
|
216
|
+
- Responsive image sizing with aspect ratio maintained
|
|
217
|
+
- Heart overlay positioned consistently across sizes
|
|
218
|
+
- Photo quality adjusts based on viewport
|
|
219
|
+
|
|
220
|
+
## 9. Agent Prompt Guide
|
|
221
|
+
|
|
222
|
+
### Quick Color Reference
|
|
223
|
+
- Background: Pure White (`#ffffff`)
|
|
224
|
+
- Text: Near Black (`#222222`)
|
|
225
|
+
- Brand accent: Rausch Red (`#ff385c`)
|
|
226
|
+
- Secondary text: `#6a6a6a`
|
|
227
|
+
- Disabled: `rgba(0,0,0,0.24)`
|
|
228
|
+
- Card border: `rgba(0,0,0,0.02) 0px 0px 0px 1px`
|
|
229
|
+
- Card shadow: full three-layer stack
|
|
230
|
+
- Button surface: `#f2f2f2`
|
|
231
|
+
|
|
232
|
+
### Example Component Prompts
|
|
233
|
+
- "Create a listing card: white background, 20px radius. Three-layer shadow: rgba(0,0,0,0.02) 0px 0px 0px 1px, rgba(0,0,0,0.04) 0px 2px 6px, rgba(0,0,0,0.1) 0px 4px 8px. Photo area on top (16:10 ratio), details below: 16px Airbnb Cereal VF weight 600 title, 14px weight 400 description in #6a6a6a."
|
|
234
|
+
- "Design search bar: white background, full card shadow, 32px radius on container. Search text at 14px Cereal VF weight 400. Red search button (#ff385c, 50% radius, white icon)."
|
|
235
|
+
- "Build category pill bar: horizontal scrollable row. Each pill: 14px Cereal VF weight 600, #222222 text, bottom border on active. Circular prev/next arrows (#f2f2f2 bg, 50% radius)."
|
|
236
|
+
- "Create a CTA button: #222222 background, white text, 8px radius, 16px Cereal VF weight 500, 0px 24px padding. Hover: brand red accent."
|
|
237
|
+
- "Design a heart/wishlist button: transparent background, 50% radius, white heart icon with dark shadow outline."
|
|
238
|
+
|
|
239
|
+
### Iteration Guide
|
|
240
|
+
1. Start with white — the photography provides all the color
|
|
241
|
+
2. Rausch Red (#ff385c) is the singular accent — use sparingly for CTAs only
|
|
242
|
+
3. Near-black (#222222) for text — the warmth matters
|
|
243
|
+
4. Three-layer shadows create natural, warm lift — always use all three layers
|
|
244
|
+
5. Generous radius: 8px buttons, 20px cards, 50% controls
|
|
245
|
+
6. Cereal VF at 500–700 weight — no thin weights for any heading
|
|
246
|
+
7. Photography is hero — every listing card is image-first
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
# Design System: Airtable
|
|
2
|
+
|
|
3
|
+
## 1. Visual Theme & Atmosphere
|
|
4
|
+
|
|
5
|
+
Airtable's website is a clean, enterprise-friendly platform that communicates "sophisticated simplicity" through a white canvas with deep navy text (`#181d26`) and Airtable Blue (`#1b61c9`) as the primary interactive accent. The Haas font family (display + text variants) creates a Swiss-precision typography system with positive letter-spacing throughout.
|
|
6
|
+
|
|
7
|
+
**Key Characteristics:**
|
|
8
|
+
- White canvas with deep navy text (`#181d26`)
|
|
9
|
+
- Airtable Blue (`#1b61c9`) as primary CTA and link color
|
|
10
|
+
- Haas + Haas Groot Disp dual font system
|
|
11
|
+
- Positive letter-spacing on body text (0.08px–0.28px)
|
|
12
|
+
- 12px radius buttons, 16px–32px for cards
|
|
13
|
+
- Multi-layer blue-tinted shadow: `rgba(45,127,249,0.28) 0px 1px 3px`
|
|
14
|
+
- Semantic theme tokens: `--theme_*` CSS variable naming
|
|
15
|
+
|
|
16
|
+
## 2. Color Palette & Roles
|
|
17
|
+
|
|
18
|
+
### Primary
|
|
19
|
+
- **Deep Navy** (`#181d26`): Primary text
|
|
20
|
+
- **Airtable Blue** (`#1b61c9`): CTA buttons, links
|
|
21
|
+
- **White** (`#ffffff`): Primary surface
|
|
22
|
+
- **Spotlight** (`rgba(249,252,255,0.97)`): `--theme_button-text-spotlight`
|
|
23
|
+
|
|
24
|
+
### Semantic
|
|
25
|
+
- **Success Green** (`#006400`): `--theme_success-text`
|
|
26
|
+
- **Weak Text** (`rgba(4,14,32,0.69)`): `--theme_text-weak`
|
|
27
|
+
- **Secondary Active** (`rgba(7,12,20,0.82)`): `--theme_button-text-secondary-active`
|
|
28
|
+
|
|
29
|
+
### Neutral
|
|
30
|
+
- **Dark Gray** (`#333333`): Secondary text
|
|
31
|
+
- **Mid Blue** (`#254fad`): Link/accent blue variant
|
|
32
|
+
- **Border** (`#e0e2e6`): Card borders
|
|
33
|
+
- **Light Surface** (`#f8fafc`): Subtle surface
|
|
34
|
+
|
|
35
|
+
### Shadows
|
|
36
|
+
- **Blue-tinted** (`rgba(0,0,0,0.32) 0px 0px 1px, rgba(0,0,0,0.08) 0px 0px 2px, rgba(45,127,249,0.28) 0px 1px 3px, rgba(0,0,0,0.06) 0px 0px 0px 0.5px inset`)
|
|
37
|
+
- **Soft** (`rgba(15,48,106,0.05) 0px 0px 20px`)
|
|
38
|
+
|
|
39
|
+
## 3. Typography Rules
|
|
40
|
+
|
|
41
|
+
### Font Families
|
|
42
|
+
- **Primary**: `Haas`, fallbacks: `-apple-system, system-ui, Segoe UI, Roboto`
|
|
43
|
+
- **Display**: `Haas Groot Disp`, fallback: `Haas`
|
|
44
|
+
|
|
45
|
+
### Hierarchy
|
|
46
|
+
|
|
47
|
+
| Role | Font | Size | Weight | Line Height | Letter Spacing |
|
|
48
|
+
|------|------|------|--------|-------------|----------------|
|
|
49
|
+
| Display Hero | Haas | 48px | 400 | 1.15 | normal |
|
|
50
|
+
| Display Bold | Haas Groot Disp | 48px | 900 | 1.50 | normal |
|
|
51
|
+
| Section Heading | Haas | 40px | 400 | 1.25 | normal |
|
|
52
|
+
| Sub-heading | Haas | 32px | 400–500 | 1.15–1.25 | normal |
|
|
53
|
+
| Card Title | Haas | 24px | 400 | 1.20–1.30 | 0.12px |
|
|
54
|
+
| Feature | Haas | 20px | 400 | 1.25–1.50 | 0.1px |
|
|
55
|
+
| Body | Haas | 18px | 400 | 1.35 | 0.18px |
|
|
56
|
+
| Body Medium | Haas | 16px | 500 | 1.30 | 0.08–0.16px |
|
|
57
|
+
| Button | Haas | 16px | 500 | 1.25–1.30 | 0.08px |
|
|
58
|
+
| Caption | Haas | 14px | 400–500 | 1.25–1.35 | 0.07–0.28px |
|
|
59
|
+
|
|
60
|
+
## 4. Component Stylings
|
|
61
|
+
|
|
62
|
+
### Buttons
|
|
63
|
+
- **Primary Blue**: `#1b61c9`, white text, 16px 24px padding, 12px radius
|
|
64
|
+
- **White**: white bg, `#181d26` text, 12px radius, 1px border white
|
|
65
|
+
- **Cookie Consent**: `#1b61c9` bg, 2px radius (sharp)
|
|
66
|
+
|
|
67
|
+
### Cards: `1px solid #e0e2e6`, 16px–24px radius
|
|
68
|
+
### Inputs: Standard Haas styling
|
|
69
|
+
|
|
70
|
+
## 5. Layout
|
|
71
|
+
- Spacing: 1–48px (8px base)
|
|
72
|
+
- Radius: 2px (small), 12px (buttons), 16px (cards), 24px (sections), 32px (large), 50% (circles)
|
|
73
|
+
|
|
74
|
+
## 6. Depth
|
|
75
|
+
- Blue-tinted multi-layer shadow system
|
|
76
|
+
- Soft ambient: `rgba(15,48,106,0.05) 0px 0px 20px`
|
|
77
|
+
|
|
78
|
+
## 7. Do's and Don'ts
|
|
79
|
+
### Do: Use Airtable Blue for CTAs, Haas with positive tracking, 12px radius buttons
|
|
80
|
+
### Don't: Skip positive letter-spacing, use heavy shadows
|
|
81
|
+
|
|
82
|
+
## 8. Responsive Behavior
|
|
83
|
+
Breakpoints: 425–1664px (23 breakpoints)
|
|
84
|
+
|
|
85
|
+
## 9. Agent Prompt Guide
|
|
86
|
+
- Text: Deep Navy (`#181d26`)
|
|
87
|
+
- CTA: Airtable Blue (`#1b61c9`)
|
|
88
|
+
- Background: White (`#ffffff`)
|
|
89
|
+
- Border: `#e0e2e6`
|