Skip to content
Default theme for Twenty Twenty
CSS PHP JavaScript
Branch: master
Clone or download
aristath and ianbelanger79 See #284 (#351)
* Get the color properties we'll need

* Add isBackgroundLight & isBackgroundDark methods

* cleanup

* hslToRGB function

* More WIP

* Rebuilt it

* missed this

* add customizer.js file

* Changed accent-color control to hue.

* disable previous implementation for now

* Enqueue files

* notes

* Add twentytwenty_get_color_for_area function

* Change body & accent colors on the frontend

* Add script for live-update background-color

* Let there be light.

* Rename files & add some more inline docs

* use real functions instead of closures

* Use wp_localize_script

* Improve color calculations

* Rename file to color-calculations

* Revert "Rename file to color-calculations"

This reverts commit c3a8054.

* inline docs fix

* minor bugfix in case there was an error

* Add calcs for header colors

* Add styles for header

* typo

* bugfix for header colors on preview
Problem occured when when changing content bg-color

* Tweak the fallback calc

* pushed this one by mistake

* Improve color script consistency & performance

* Simplify colors script

* The TwentyTwenty_Color class is no longer required

* more color script tweaks - prefer AAA-compliant

* Create proper sanitization callback

* Remove old colorpicker, no longer used

* Add accent color to editor palette

* fix accent_accessible_colors setting default value

* Added header/footer background-color

* Rename file to color-calculations

* Remove priorities from controls because 10.

* Return false on twentytwenty_get_color_for_area

* create elements array

* shorten the array definitions

* Save the background-color value in the option

* auto-calculate secondary color

* rename key to "borders"

* added PHP implementation for css-output

* Save secondary color.

* better calculations for secondary color

* Add elements for secondary

* bugfix for secondary value (return string)

* fix sanitization method for new structure

* coding-standards fixes

* Add more colors to the palette

* Add body color styles to the editor

* tweak for editor title color

* Add support for dark-mode depending on background

* remove extra blank line - fails travis test

* coding-standards fixes

* fill missing default values

* fix lint issues
Latest commit 049e8fe Sep 21, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
assets See #284 (#351) Sep 21, 2019
classes See #284 (#351) Sep 21, 2019
inc See #284 (#351) Sep 21, 2019
template-parts Fixed #369 - Search results shows manual excerpt twice (#379) Sep 20, 2019
templates UPDATE #250: Update structure (#251) Sep 17, 2019
.editorconfig Update `.editorconfig` to latest WordPress version (#374) Sep 20, 2019
.eslintrc add @wordpress/scripts package (#363) Sep 21, 2019
.gitattributes Add coding standards (#11) Sep 9, 2019
.gitignore Add RTL support (#65) Sep 17, 2019
.stylelintrc.json add @wordpress/scripts package (#363) Sep 21, 2019
.travis.yml add @wordpress/scripts package (#363) Sep 21, 2019
404.php Update archive titles font-size to match design (#265) Sep 14, 2019
CONTRIBUTING.md Merging Develop into Master (#220) Sep 11, 2019
CONTRIBUTORS.md Updated contributors with design feedback people Sep 21, 2019
README.md Updated readme with licensing information for Inter and FontAwesome (#… Sep 21, 2019
comments.php Reduce comment title font size, tweak comments style (#434) Sep 21, 2019
composer.json Update Composer files per WordPress Coding Standards (#375) Sep 20, 2019
composer.lock Update Composer files per WordPress Coding Standards (#375) Sep 20, 2019
footer.php #391 Fix - Display consistent social links on footer (#433) Sep 21, 2019
functions.php See #284 (#351) Sep 21, 2019
header.php fixes (#403) Sep 20, 2019
index.php Add separators to archive pages, update pagination (#329) Sep 19, 2019
license.txt Rename licence.txt to license.txt (#160) Sep 9, 2019
package-lock.json add @wordpress/scripts package (#363) Sep 21, 2019
package.json add @wordpress/scripts package (#363) Sep 21, 2019
phpcs.xml.dist Update coding standards (#175) Sep 11, 2019
readme.txt Updated readme with licensing information for Inter and FontAwesome (#… Sep 21, 2019
screenshot.jpg Added screenshot, updated readme.txt with license (#299) Sep 16, 2019
singular.php UPDATE #250: Update structure (#251) Sep 17, 2019
style-rtl.css Update `style.css` per WordPress Coding Standards (#377) Sep 20, 2019
style.css Fixes more stylelint errors (#438) Sep 21, 2019

README.md

Theme Name: Twenty Twenty
Theme URI: https://wordpress.org/themes/twentytwenty/
Contributors: the WordPress team
Requires at least: WordPress 4.7
Version: 1.0 License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: blog, one-column, custom-background, custom-colors, custom-logo, custom-menu, editor-style, featured-images, footer-widgets, full-width-template, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready, block-styles, wide-blocks

Description

Default theme for Twenty Twenty

Installation

  1. In your admin panel, go to Appearance -> Themes and click the 'Add New' button.
  2. Type in Twenty Twenty in the search form and press the 'Enter' key on your keyboard.
  3. Click on the 'Activate' button to use your new theme right away.
  4. Go to https://wordpress.org/support/article/twenty-twenty/ for a guide on how to customize this theme.
  5. Navigate to Appearance > Customize in your admin panel and customize to taste.

Copyright

Twenty Twenty WordPress Theme, Copyright 2019 WordPress.org Twenty Twenty is distributed under the terms of the GNU GPL.

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

Twenty Twenty bundles the following third-party resources:

Image in screenshot.png from PxHere License: Creative Commons Zero (CC0), https://creativecommons.org/publicdomain/zero/1.0/ URL: https://pxhere.com/en/photo/18153

Inter Font License: SIL Open Font License, 1.1, https://opensource.org/licenses/OFL-1.1 Source: https://rsms.me/inter/

FontAwesome Icons License: SIL Open Font License, 1.1, https://opensource.org/licenses/OFL-1.1 Source: https://www.fontawesome.io

FontAwesome Code License: MIT License, https://opensource.org/licenses/MIT Source: https://www.fontawesome.io

Font Noto Sans License: Apache License (Apache-2.0), https://www.apache.org/licenses/LICENSE-2.0 URL: https://fonts.google.com/specimen/Noto+Sans

Font Noto Sans TC License: SIL Open Font License (OFL-1.1), https://opensource.org/licenses/OFL-1.1 URL: https://fonts.google.com/specimen/Noto+Sans+TC

Font Noto Sans SC License: SIL Open Font License (OFL-1.1), https://opensource.org/licenses/OFL-1.1 URL: https://fonts.google.com/specimen/Noto+Sans+TC

Font Noto Sans HK License: SIL Open Font License (OFL-1.1), https://opensource.org/licenses/OFL-1.1 URL: https://fonts.google.com/specimen/Noto+Sans+TC

Changelog

You can’t perform that action at this time.