From cbd414485f53e2b44e08c023e8597fb695408f61 Mon Sep 17 00:00:00 2001 From: CM Lubinski Date: Mon, 12 Jun 2017 17:48:04 -0400 Subject: [PATCH] Add USWDS color scheme. As a first draft of a U.S. Web Design Standards theme, this selects uses reasonable colors from its 508-compliant color pallet. --- README.md | 7 +++- .../fixtures/admin_interface_theme_uswds.json | 39 +++++++++++++++++++ 2 files changed, 44 insertions(+), 2 deletions(-) create mode 100644 admin_interface/fixtures/admin_interface_theme_uswds.json diff --git a/README.md b/README.md index 6812b24..cd8a8a7 100644 --- a/README.md +++ b/README.md @@ -50,12 +50,15 @@ This package ships with optional themes as fixtures, they can be installed using ##### Django theme (default): Run ``python manage.py loaddata admin_interface_theme_django.json`` -##### Bootstrap theme: +##### [Bootstrap](http://getbootstrap.com/) theme: Run ``python manage.py loaddata admin_interface_theme_bootstrap.json`` -##### Foundation theme: +##### [Foundation](http://foundation.zurb.com/) theme: Run ``python manage.py loaddata admin_interface_theme_foundation.json`` +##### [U.S. Web Design Standards](https://standards.usa.gov/) theme: +Run ``python manage.py loaddata admin_interface_theme_uswds.json`` + ### Add more themes You can add a theme you've created through the admin to this repository by [sending us a PR](http://makeapullrequest.com/). Here are the steps to follow to add : diff --git a/admin_interface/fixtures/admin_interface_theme_uswds.json b/admin_interface/fixtures/admin_interface_theme_uswds.json new file mode 100644 index 0000000..bf2aab2 --- /dev/null +++ b/admin_interface/fixtures/admin_interface_theme_uswds.json @@ -0,0 +1,39 @@ +[ + { + "model": "admin_interface.theme", + "fields": { + "name": "USWDS", + "active": true, + "title": "Site administration", + "title_color": "#FFFFFF", + "title_visible": true, + "logo": "", + "logo_color": "#FFFFFF", + "logo_visible": false, + "css_header_background_color": "#112E51", + "css_header_text_color": "#FFFFFF", + "css_header_link_color": "#FFFFFF", + "css_header_link_hover_color": "#E1F3F8", + "css_module_background_color": "#205493", + "css_module_text_color": "#FFFFFF", + "css_module_link_color": "#FFFFFF", + "css_module_link_hover_color": "#E1F3F8", + "css_module_rounded_corners": true, + "css_generic_link_color": "#205493", + "css_generic_link_hover_color": "#0071BC", + "css_save_button_background_color": "#205493", + "css_save_button_background_hover_color": "#112E51", + "css_save_button_text_color": "#FFFFFF", + "css_delete_button_background_color": "#CD2026", + "css_delete_button_background_hover_color": "#981B1E", + "css_delete_button_text_color": "#FFFFFF", + "css": "", + "related_modal_active": true, + "related_modal_background_color": "#000000", + "related_modal_background_opacity": 0.8, + "related_modal_rounded_corners": true, + "list_filter_dropdown": false, + "recent_actions_visible": true + } + } +]