Skip to content

Commit

Permalink
use blue instead of orange for enketo surveys
Browse files Browse the repository at this point in the history
Since Enketo's themes use SCSS it isn't that hard to override the orange color. This makes it a bit more cohesive with the rest of the app.
  • Loading branch information
JGreenlee committed Feb 28, 2024
1 parent 2796702 commit b62861e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions www/css/style.css → www/css/style.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
/* This file is in Sassy CSS (SCSS) because Enketo uses SCSS and we want to extend on their styles.
Webpack will just compile this to plain CSS anyway */

@import 'leaflet/dist/leaflet.css';

html {
Expand All @@ -7,6 +10,9 @@ html {
/* Scoped styles for Enketo */
/* if we don't contain them here, they will leak into the rest of the app */
.enketo-plugin {
// Enketo's default theme uses orange; we can override with our own blue
$primary: #0080b9; // matches 'primary' in appTheme.ts
$brand-primary-color: darken($primary, 5%); // make it a bit darker for legibility in Enketo UI
@import 'enketo-core/src/sass/formhub/formhub.scss';
flex: 1;
.question.non-select {
Expand Down
2 changes: 1 addition & 1 deletion www/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react';
import { createRoot } from 'react-dom/client';
import { Provider as PaperProvider } from 'react-native-paper';

import './css/style.css';
import './css/style.scss';
import 'chartjs-adapter-luxon';

import initializedI18next from './js/i18nextInit';
Expand Down

0 comments on commit b62861e

Please sign in to comment.