/contrast-switcher

Demonstration of two examples of a colour contrast switcher to illustrate an article by Tanaguru on the contrast improvement mechanism for accessibility

Primary LanguageHTML

[FR] Switcher de couleurs pour une version contrastée

Mini-site exemple pour un switcher de couleurs (commutateur de style), mécanisme permettant d'obtenir des couleurs suffisamment contrastées pour respecter les règles d'accessibilité et permettre à tout le monde de lire le contenu.

Lancer le projet

Synchroniser en amont le dossier avec Git

Afficher le projet

Lancer simplement la page index.html

Modifier le projet

Pré-requis : installer le plugin EditorConfig qui va bien pour son éditeur de code pour éviter les problèmes d'indentation

Modifier le style CSS (Sass) du projet

Première installation
  1. Pré-requis : avoir NodeJS avec NPM (version LTS et non pas Current)
  2. Dans l'explorateur du système d'exploitation, se placer dans le dossier contenant le projet et ouvrir une invite de commandes
  3. Lancer l'installation des modules via la commande npm install
Lancer la compilation

Lancer la compilation Sass (autopréfixage CSS + watch) via la commande npm run dev


[EN] Colour switcher for a high contrast version

Mini site example for a colour switcher (style switch), a mechanism to obtain sufficiently contrasting colours to comply with accessibility rules and allow everyone to read the content.

Run the project

At first, synchronise the repository with Git

Display the project

Simply launch the index-en.html page

Edit the project

Prerequisite: install the EditorConfig plugin that works well for your code editor to avoid indentation problems.

Modify CSS style (Sass) of the project

First set up
  1. Prerequisite: having NodeJS avec NPM (LTS version and not Current)
  2. In the explorer of the operating system, go to the folder containing the project and open a command prompt
  3. Start the installation of the modules via the npm install command
Launch compilation

Launch Sass compilation (CSS auto-prefix + watch) via the npm run dev command