Hey everyone,
I just want post a link to a JSON file that I made as a CSS reference. It’s slightly invalid JSON because it includes functions but that shouldn’t be a problem unless you’re using ajax to transfer the file for some reason. This file was used to make a random css generator and worked out quite nicely.
File: CSS.JSON
Purpose: To provide a JSON lookup for the css properties.
Limitations: Using CSS Version 1 and 2.
Example code
...
"white-space": {
"info": "Specifies how white-space inside an element is handled",
"cssVersion": "1",
"unitType": ["normal", "pre", "nowrap", "pre-wrap", "pre-line"]
},
...
What REALLY is Data Science? Told by a Data Scientist - By Joma Tech
Writing perfect code is a challenging process. That's where code reviews come in to help…
"The Next Leap: How A.I. will change the 3D industry - Andrew Price - Blender"
"Captain Disillusion: World's Greatest Blenderer - Live at the Blender Conference 2018 - CaptainDisillusion"
My 5 Favorite Linux Shell Tricks for SPEEEEEED (and efficiency) - By tutoriaLinux > What's…
View Comments
Great code! I needed something similar for my application so I removed the random functions and added CSS3 properties.
The source code is hosted on https://github.com/datamosh/CSS-JS-object
Thank you very much!
Nice improvements.
Thanks for referencing me.
Hi Larry, How do I use this code. Looks like this one I wanted. Please refer my post in stack overflow. http://stackoverflow.com/questions/18679014/adding-css-to-a-javascript-widget . I have the widget ready. just need to add the CSS for styling the table.
This CSS.json file isn't what you want. CSS.json is used to reference all the possible properties that you can have in CSS 2.
Robert from your stackoverflow link answered your question well.