Files
HugoBlox-kit/modules/blox
George Cushen 9f19818ea7 fix(themes): default light secondary indigo→teal for visible gradients
Light-mode `secondary` was `blue` (hue ~260, almost identical to the
`indigo` primary at hue ~277). Result: every primary→secondary
gradient in light mode read as a flat solid colour — Pro pricing tier
border, "Most popular" badge, Pro CTA, hero highlight (when not in
forced-dark sections), stats numbers, comparison-table accents all
lost their gradient direction.

Switch light secondary to `teal` (hue ~182). Dark mode already used
teal, so this unifies the brand pairing across modes. Visible gradient
direction restored everywhere primary→secondary is used.

No block changes needed — the fix lives in the theme palette where
similar brand decisions belong, not as workarounds in individual
blocks.
2026-05-02 19:35:21 +01:00
..
2026-01-02 21:06:55 +00:00

Hugo Blox (core)

The Hugo Blox web framework powered by Tailwind CSS v4 with Hugo's native integration for styling components with Tailwind v4.

Requirements

  • Hugo v0.148.2+ (Extended Edition)
  • Node.js v20+
  • pnpm (see packageManager field in package.json)

Quick Start

1. Install Dependencies

pnpm install

2. Run Development Server

hugo server

Tailwind CSS is processed automatically by Hugo using the css.TailwindCSS function.

Features

  • Tailwind CSS v4: Latest version with improved performance over Tailwind v3
  • Hugo Native Integration: Uses Hugo's built-in css.TailwindCSS function
  • Dynamic CSS Generation: Only includes utilities actually used in your content for ultra-fast page loads
  • No Pre-compilation: CSS is generated on-demand (previously Tailwind v3 was pre-compiled in Hugo Blox as wc.min.css)
  • Community Components: Community components work seamlessly without manual compilation

Configuration

The Tailwind configuration is now in CSS format at assets/css/main.css using the @theme directive. The configuration includes:

  • Hugo Blox color schemes (primary, secondary, neutral)
  • Typography settings
  • Safelist patterns for dynamic classes
  • Dark mode support

Migration from Tailwind v3

If you're upgrading from Tailwind v3:

  1. Install the new dependencies: pnpm install
  2. Remove any assets/dist/wc.min.css files
  3. Add the package.json file from the latest templates
  4. Update your deployment scripts to install it with pnpm install (refer to the latest .github folder in the templates)
  5. The old tailwind.config.js and postcss.config.js files are no longer needed

Development

For module development:

# Install dependencies
pnpm install

# Run development server
hugo server --disableFastRender

# Build for production
hugo --minify

Vendor Libraries

The module includes several third-party vendor libraries that are distributed with the module. These are copied from node_modules to the assets/dist/lib directory during the build process.

To update the vendor libraries:

# Update vendor libraries to the latest versions and rebuild
pnpm vendor:update-and-build

# Just rebuild vendor libraries without updating versions
pnpm vendor:libs

The following libraries are included:

  • mermaid (diagrams)
  • plotly.js (interactive charts)
  • katex (math rendering)
  • markmap-autoloader (mind maps)
  • alpinejs (interactivity)
  • preact (interactive components)