theme-factory_skill

This skill helps you implement professional theming and design token systems for brand-consistent Streamlit apps with easy theme switching.
  • Python

0

GitHub Stars

1

Bundled Files

2 months ago

Catalog Refreshed

4 months ago

First Indexed

Readme & install

Copy the install command, review bundled files from the catalogue, and read any extended description pulled from the listing source.

Installation

Preview and clipboard use veilstrat where the catalogue uses aiagentskills.

npx veilstrat add skill chunkytortoise/enterprisehub --skill theme-factory

  • SKILL.md7.8 KB

Overview

This skill provides a professional theming system for building cohesive visual identities across applications. It includes theme generators, design token management, and Streamlit integration to apply consistent styles automatically. The goal is fast, accessible, and brand-consistent UI theming for production apps.

How this skill works

Define theme specifications as design tokens (colors, typography, spacing, radii, shadows, animations) and generate full palettes and variants. A ThemeFactory produces preset and custom themes, while utilities manipulate colors and ensure contrast. Streamlit integration injects CSS or applies theme settings early in app initialization so components render with the selected theme.

When to use it

  • Implementing brand-consistent visual identities across web apps
  • Adding multi-theme support or a light/dark mode toggle
  • Creating design token systems for component libraries
  • Building industry-tailored themes (real estate, finance, healthcare)
  • Standardizing typography, spacing, and color scales for teams

Best practices

  • Always consume design tokens (CSS variables) instead of hardcoded values
  • Test themes in both light and dark modes and verify WCAG AA contrast
  • Start with presets, then refine colors and typography to match brand guidelines
  • Keep CSS injection early in app startup to avoid render flashes
  • Reuse tokens and minimize custom overrides to preserve performance

Example use cases

  • Rapidly creating a professional real-estate theme with primary, secondary, and accent palettes
  • Generating a luxury theme with premium accents and serif headings for high-end platforms
  • Adding a theme selector in a Streamlit app so users can switch between corporate and dark modes
  • Using design tokens from the active theme to style custom components and charts consistently
  • Exporting and reusing themes across multiple projects for enterprise brand consistency

FAQ

Use the ensure_contrast utility to evaluate and adjust colors to meet at least WCAG AA ratios before applying palettes.

When should I inject theme CSS in a Streamlit app?

Inject theme settings early in app initialization, before rendering UI components, to avoid visual mismatches.

Can I persist and share themes across projects?

Yes. Save and load theme JSON definitions to export themes for reuse in other apps or teams.

Built by
VeilStrat
AI signals for GTM teams
© 2026 VeilStrat. All rights reserved.All systems operational