Page MenuHomePhabricator

Make it easier to create an OOUI theme
Open, LowPublic

Description

To create a theme currently: get the oojs/ui repo, copy-paste the src/themes/blank directory to your own name, list the new theme in Gruntfile.js and maybe a few other places (i could find them all if you're serious about doing this), and start writing the CSS

I want a more modular approach, where themes are definable in any extension, and consist of an array of variables in json or less or something which OOUI then assembles that into the css/js itself:

  • A set of colours for different things (borders, backgrounds, text, different types of buttons, etc)
  • General properties - how much spacing in general, whether to even use any shadows, whether buttons should be gradiented or flat, whether to override fonts, that sort of thing
  • Specific properties for all the types of things (buttons, dialogs, inputs, etc) such as rounded corners, gradients, shadows, fonts, padding - none, or specific values (what sort of gradient, what sort of shadow, how much padding)
  • ...
  • Profit?

Event Timeline

Isarra created this task.Jan 17 2017, 10:04 PM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptJan 17 2017, 10:04 PM
Isarra updated the task description. (Show Details)
Osnard added a subscriber: Osnard.Jan 25 2017, 8:42 AM

Can't wait to vote for this :)

This proposal is selected for the Developer-Wishlist voting round and will be added to a MediaWiki page very soon. To the subscribers, or proposer of this task: please help modify the task description: add a brief summary (10-12 lines) of the problem that this proposal raises, topics discussed in the comments, and a proposed solution (if there is any yet). Remember to add a header with a title "Description," to your content. Please do so before February 5th, 12:00 pm UTC.

Jdforrester-WMF triaged this task as Low priority.Jun 1 2017, 7:46 PM