openmastery / semantic-ui-theme Goto Github PK
View Code? Open in Web Editor NEWTheme editor and manager for the Semantic-UI framework
License: MIT License
Theme editor and manager for the Semantic-UI framework
License: MIT License
Need to have the compiler generate a very simple JS module that is used by the hardcoded loader. Loader will assume that this file exists,, if it doesn't .. raise exception
This could be kinda helpful, right!
we need a compiler that will take a base .yml file containing theme style fields and functions and create a JS module that can be loaded into a webpage. The JS module will consist of:
The compiled module's renderer will dynamically create a new stylesheet <link/>
into the <head/>
of the document with the renderer. The renderer will create new rules in the stylesheet by injecting the rules with the injector. Rules can dynamically be set by calling an update function within the renderer.
need to create a base project to work off from. why not use semantic ui directly!
This will prevent alot of future headaches and a quick mechanism for running compiler against future YAML theme rules
Need a simple JS Module skeleton that we can use as a base class to put compiled JS into
We need a mechanism that will load the compiler JS into a projects webpage using a require
or import
declaration. The main purpose of the loader is to load the compiled JS module into a webpage, and execute the renderer process.
The loader needs to be able to look for a static pre-compiled JS module to import into the JS scope of the webpage, or function as a service that dynamically compiles the JS by calling the the compiler on the server side, and returning the JS module to be loaded into the webpage.
set up basic gulp tasks for creating the compiler.. basically gulp task should execute some JS classes to handle processing
Lets load the compiled JS upfront by knowing the static name of the compiled file. Not using the loader project
Let's layout the goals of this project and break down a roadmap to getting there. I'll update this description as we develop the requirements.
I would suggest replacing all CSS with a CSS-in-JS solution be deferred for a later time. Instead, I think we would be well served by a theme builder around customizing the LESS build of SUI. LESS provides an in-browser compiler that makes this very easy. We can run this in a web worker so as not to block the main ui thread.
Users would have photoshop-like controls (i.e. color pickers, range sliders, etc.) for tweaking the global variables, component variables, and adding LESS overrides. The LESS editor and all input fields would have typeahead support for variables to make things easier for the user. The user could then download the customized theme CSS and/or LESS.
The benefit here is that we can leverage the already existing SUI CSS teams to manage the CSS/LESS for us. Our system would only have to update the LESS package, parse it, and generate the controls for users.
Right now, this list is based on the idea of editing a LESS theme. We're also experimenting with porting the LESS to CSS-in-JS, in which case some of this will not apply. I've marked items that do not apply to CSS-in-JS with ๐ซ CSS-in-JS.
site.variables
<component>.variables
just a simple JS class that can create a new stylesheet and add a few test classes into it
need a really simple YAML file to use for testing the compiler with
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.