Skip to content

Split OK.css into modular files#27

Merged
andrewh0 merged 4 commits intomainfrom
andrewh0/split-css-files
Jan 23, 2026
Merged

Split OK.css into modular files#27
andrewh0 merged 4 commits intomainfrom
andrewh0/split-css-files

Conversation

@andrewh0
Copy link
Copy Markdown
Owner

Summary

Refactors the monolithic OK.css into three modular files to support selective imports:

  • core.css: Typography, colors, dark mode, normalize, code, links, lists, media (~7 KB)
  • forms.css: Form elements, inputs, buttons (~12 KB, requires core.css)
  • tables.css: Table styling (~1 KB, requires core.css)

Users can now import only what they need. A markdown-only site can use just core.css instead of the full framework, reducing bundle size by 65%.

Change Type

  • patch
  • minor
  • major
  • skip-release

🤖 Generated with Claude Code

andrewh0 and others added 4 commits January 22, 2026 23:46
Refactor the monolithic ok.css into three focused modules:
- core.css: Typography, colors, dark mode, normalize, code, links, lists, media
- forms.css: Form elements, inputs, buttons (requires core.css)
- tables.css: Table styling (requires core.css)

This allows users to import only what they need. A markdown-only site can use just core.css (~7 KB) instead of the full framework (~19 KB). Build system updated to generate minified versions of each module with proper versioning and headers.

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
- Reorganized demo.html into Core, Forms, and Tables sections
- Each section shows what module to import
- Updated index.html to explain modular imports

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
@andrewh0 andrewh0 merged commit b2ca1bd into main Jan 23, 2026
4 checks passed
@andrewh0 andrewh0 deleted the andrewh0/split-css-files branch January 23, 2026 08:06
@github-actions
Copy link
Copy Markdown
Contributor

🚀 PR was released in v1.2.3 🚀

andrewh0 added a commit that referenced this pull request Jan 23, 2026
- Update version to 2.0.0 in package.json, source CSS, and dist files
- Create PR workflow to apply version labels from PR body via auto pr-check
- Reorder .autorc plugins (npm, upload-assets, released, pr-body-labels)
- Simplify build script to use piped concatenation instead of temp files

This fixes PR #27 which was marked as major but only bumped to 1.2.3 instead of 2.0.0.

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
andrewh0 added a commit that referenced this pull request Jan 23, 2026
* Fix versioning workflow and major version bump

- Update version to 2.0.0 in package.json, source CSS, and dist files
- Create PR workflow to apply version labels from PR body via auto pr-check
- Reorder .autorc plugins (npm, upload-assets, released, pr-body-labels)
- Simplify build script to use piped concatenation instead of temp files

This fixes PR #27 which was marked as major but only bumped to 1.2.3 instead of 2.0.0.

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>

* Add statuses:write permission to PR workflow

Required for auto pr-check to post commit status.

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Haiku 4.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant