Skip to main content
NetterTech
Event management for WordPress, done right.

Styling

For theme developers and site administrators customizing event appearance.

All plugin elements use CSS custom properties prefixed with --nte-. Override any of them in your theme’s stylesheet or in Appearance > Customize > Additional CSS to change how events look without touching plugin files.


CSS custom properties

Colors

VariableDefaultControls
--nte-color-primary#2563ebButtons and links
--nte-color-primary-hover#1d4ed8Button and link hover state
--nte-color-text#1f2937Main body text
--nte-color-text-muted#5a616eSecondary labels and captions
--nte-color-border#82858cDividers and outlines
--nte-color-background#fffPage background
--nte-color-background-alt#f9fafbCard and panel backgrounds
--nte-color-success#10b981Confirmation states
--nte-color-warning#f59e0bWarning indicators
--nte-color-error#ef4444Error states

Spacing

VariableDefaultNote
--nte-spacing-xs0.25remTight internal gaps
--nte-spacing-sm0.5remSmall component padding
--nte-spacing-md1remStandard component spacing
--nte-spacing-lg1.5remSection spacing
--nte-spacing-xl2remBlock-level vertical rhythm

Typography

VariableDefaultNote
--nte-font-familyTheme body fontFalls back to inherit
--nte-font-size-sm0.875emLabels and metadata
--nte-font-size-base1emBody text
--nte-font-size-lg1.125emSubheadings
--nte-font-size-xl1.25emHeadings

No text renders below 0.75rem regardless of overrides – this floor is enforced for legibility.

Layout

VariableDefaultControls
--nte-container-max-width1200pxPlugin container width
--nte-container-wide-width1400pxWide layout variant
--nte-radius-sm0.25remTag and badge corners
--nte-radius-md0.375remCard corners
--nte-radius-lg0.5remModal and panel corners

How to override

Add overrides to Appearance > Customize > Additional CSS, or in your theme’s style.css:

:root {
    --nte-color-primary: #c0392b;
    --nte-color-primary-hover: #922b21;
    --nte-font-family: Georgia, serif;
}

Changes cascade to all plugin elements automatically. You do not need to target individual plugin classes for color or spacing changes.


Settings vs. CSS

Events > Settings > Display > Theme Colors auto-detects colors from your active theme’s palette and sets the --nte-* color variables at runtime. Enabling Customize colors on that tab lets you set each role manually.

CSS overrides you add here take precedence over the Settings values. The order of priority is:

  1. Your theme or Additional CSS
  2. Theme Colors settings (Events > Settings)
  3. Plugin defaults (the values in the table above)

The Date Badge Color setting (under Display > Image display) sets --nte-date-bg independently of the color role system.


Class naming

All plugin classes use the nte- prefix. Target them in your CSS if you need element-specific changes that custom properties cannot address:

/* Widen event cards */
.nte-event-card {
    max-width: 400px;
}

Responsive behavior

The plugin uses mobile-first responsive breakpoints. Grids collapse from multi-column to single-column at 768px and 480px. Single event pages stack their layout at 640px. The calendar collapses its day columns at 768px and simplifies further at 480px. Container padding increases at 768px.


See also: Templates | Settings