Event Gallery

Are you looking for Event Gallery? Jump to the information page.

Customize the colours with CSS

The frontend of Event Gallery draws its colours, corner radii and shadows from one set of CSS custom properties, the --eg-* tokens. They are declared once on :root with zero specificity, so a few lines in the custom CSS of your template change the whole component: the format dialog, the selection bar, the cart page, the mini cart module and the checkout.

Add your overrides to the custom stylesheet of your template (Cassiopeia loads media/templates/site/cassiopeia/css/user.css if it exists) or to any stylesheet which loads after media/com_eventgallery/dist/eventgallery.css.

Example: a red accent colour. 

:root {
  --eg-primary: #b91c1c;
  --eg-primary-hover: #991b1b;
  --eg-primary-soft: #fee2e2;
}

These are the tokens and their defaults:

TokenDefaultUsed for

--eg-primary

#2563eb

Accent colour: active tab, selected format, badges, the tick of a selected image, the highlighted method card

--eg-primary-hover

#1d4ed8

Hover state of the accent colour

--eg-primary-soft

#eff6ff

Light accent background, e.g. the selected payment method and the counter of the mini cart

--eg-on-primary

#ffffff

Text and icons drawn on the accent colour

--eg-selection

var(--eg-primary)

Outline and tick of the selected images

--eg-text

#1f2937

Headlines, prices, labels

--eg-text-muted

#6b7280

Descriptions and hints

--eg-border

#e5e7eb

Borders of cards, rows and controls

--eg-border-hover

#cbd5e1

Border of a card under the pointer

--eg-surface

#ffffff

Background of cards, the dialog and the selection bar

--eg-surface-muted

#f3f4f6

Background of hints and disabled formats

--eg-success

#10b981

Applied promotion codes

--eg-danger

#dc2626

Required markers, invalid fields, the remove action

--eg-radius

12px

Corner radius of cards and the dialog

--eg-radius-sm

8px

Corner radius of rows and inputs

--eg-radius-xs

6px

Corner radius of small buttons

--eg-focus-ring

3px, 25 % of the accent colour

Focus ring of controls

--eg-shadow

soft shadow

Shadow of the dialog

--eg-transition

all 0.2s ease

Transition of hover and focus states

A token can also be changed for one part of the page only, because the tokens are inherited: .eventgallery-minicart-module { --eg-primary: #0f766e; } recolours the mini cart module and nothing else.

Buttons, inputs and cards keep their Bootstrap classes (btn, form-control, card) and take their look from your Joomla template. If your template’s buttons are green, the buttons of Event Gallery are green too; the tokens do not touch them.

[Note]Dark templates

Event Gallery does not switch to a dark palette on its own, because it cannot tell whether your template is dark. If it is, set the tokens for it, for example:

:root {
  --eg-surface: #1f2937;
  --eg-surface-muted: #374151;
  --eg-text: #f3f4f6;
  --eg-text-muted: #9ca3af;
  --eg-border: #4b5563;
}
All prices include VAT. The gross price will vary depending on the selected shipping country.