From 3d1c5e53896797b88ceb637052d0e4319f637686 Mon Sep 17 00:00:00 2001 From: Thomas Park Date: Sun, 29 Apr 2012 12:56:30 -0400 Subject: api: new schema and example --- api/example.html | 44 +++++++++++++++++++++++ api/themes.json | 106 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ themes.json | 106 ------------------------------------------------------- 3 files changed, 150 insertions(+), 106 deletions(-) create mode 100644 api/example.html create mode 100644 api/themes.json delete mode 100644 themes.json diff --git a/api/example.html b/api/example.html new file mode 100644 index 00000000..c340b23e --- /dev/null +++ b/api/example.html @@ -0,0 +1,44 @@ + + + + + Bootswatch API Example + + + + + + + + + + + \ No newline at end of file diff --git a/api/themes.json b/api/themes.json new file mode 100644 index 00000000..f9e02959 --- /dev/null +++ b/api/themes.json @@ -0,0 +1,106 @@ +{ + + "themes": [ + + { + "name": "Amelia", + "description": "Sweet and cheery.", + "thumbnail": "http://bootswatch.com/amelia/thumbnail.png", + "preview": "http://bootswatch.com/amelia/", + "css": "http://bootswatch.com/amelia/bootstrap.css", + "css-min": "http://bootswatch.com/amelia/bootstrap.min.css" + }, + + { + "name": "Cerulean", + "description": "A calm blue sky.", + "thumbnail": "http://bootswatch.com/cerulean/thumbnail.png", + "preview": "http://bootswatch.com/cerulean/", + "css": "http://bootswatch.com/cerulean/bootstrap.css", + "css-min": "http://bootswatch.com/cerulean/bootstrap.min.css" + }, + + { + "name": "Cyborg", + "description": "Jet black and electric blue.", + "thumbnail": "http://bootswatch.com/cyborg/thumbnail.png", + "preview": "http://bootswatch.com/cyborg/", + "css": "http://bootswatch.com/cyborg/bootstrap.css", + "css-min": "http://bootswatch.com/cyborg/bootstrap.min.css" + }, + + { + "name": "Journal", + "description": "Crisp like a new sheet of paper.", + "thumbnail": "http://bootswatch.com/journal/thumbnail.png", + "preview": "http://bootswatch.com/journal/", + "css": "http://bootswatch.com/journal/bootstrap.css", + "css-min": "http://bootswatch.com/journal/bootstrap.min.css" + }, + + { + "name": "Readable", + "description": "Optimized for legibility.", + "thumbnail": "http://bootswatch.com/readable/thumbnail.png", + "preview": "http://bootswatch.com/readable/", + "css": "http://bootswatch.com/readable/bootstrap.css", + "css-min": "http://bootswatch.com/readable/bootstrap.min.css" + }, + + { + "name": "Simplex", + "description": "Mini and minimalist.", + "thumbnail": "http://bootswatch.com/simplex/thumbnail.png", + "preview": "http://bootswatch.com/simplex/", + "css": "http://bootswatch.com/simplex/bootstrap.css", + "css-min": "http://bootswatch.com/simplex/bootstrap.min.css" + }, + + { + "name": "Slate", + "description": "Shades of gunmetal gray.", + "thumbnail": "http://bootswatch.com/slate/thumbnail.png", + "preview": "http://bootswatch.com/slate/", + "css": "http://bootswatch.com/slate/bootstrap.css", + "css-min": "http://bootswatch.com/slate/bootstrap.min.css" + }, + + { + "name": "Spacelab", + "description": "Silvery and sleek.", + "thumbnail": "http://bootswatch.com/spacelab/thumbnail.png", + "preview": "http://bootswatch.com/spacelab/", + "css": "http://bootswatch.com/spacelab/bootstrap.css", + "css-min": "http://bootswatch.com/spacelab/bootstrap.min.css" + }, + + { + "name": "Spruce", + "description": "Camping in the woods.", + "thumbnail": "http://bootswatch.com/spruce/thumbnail.png", + "preview": "http://bootswatch.com/spruce/", + "css": "http://bootswatch.com/spruce/bootstrap.css", + "css-min": "http://bootswatch.com/spruce/bootstrap.min.css" + }, + + { + "name": "Superhero", + "description": "Batman meets... Aquaman?", + "thumbnail": "http://bootswatch.com/superhero/thumbnail.png", + "preview": "http://bootswatch.com/superhero/", + "css": "http://bootswatch.com/superhero/bootstrap.css", + "css-min": "http://bootswatch.com/superhero/bootstrap.min.css" + }, + + { + "name": "United", + "description": "Ubuntu orange and unique font.", + "thumbnail": "http://bootswatch.com/united/thumbnail.png", + "preview": "http://bootswatch.com/united/", + "css": "http://bootswatch.com/united/bootstrap.css", + "css-min": "http://bootswatch.com/united/bootstrap.min.css" + } + + ] + +} diff --git a/themes.json b/themes.json deleted file mode 100644 index a82ed3f2..00000000 --- a/themes.json +++ /dev/null @@ -1,106 +0,0 @@ -{ - - "themes": [ - - { - "name": "Amelia", - "description": "Sweet and cheery.", - "thumbnail": "http://bootswatch.com/amelia/thumbnail.png", - "preview": "http://bootswatch.com/amelia/", - "css": "http://bootswatch.com/amelia/bootstrap.css", - "css-min": "http://bootswatch.com/amelia/bootstrap.min.css" - }, - - { - "name": "Cerulean", - "description": "A calm blue sky.", - "thumbnail": "http://bootswatch.com/cerulean/thumbnail.png", - "preview": "http://bootswatch.com/cerulean/", - "css": "http://bootswatch.com/cerulean/bootstrap.css", - "css-min": "http://bootswatch.com/cerulean/bootstrap.min.css" - }, - - { - "name": "Cyborg", - "description": "Jet black and electric blue.", - "thumbnail": "http://bootswatch.com/cyborg/thumbnail.png", - "preview": "http://bootswatch.com/cyborg/", - "css": "http://bootswatch.com/cyborg/bootstrap.css", - "css-min": "http://bootswatch.com/cyborg/bootstrap.min.css" - }, - - { - "name": "Journal", - "description": "Crisp like a new sheet of paper.", - "thumbnail": "http://bootswatch.com/journal/thumbnail.png", - "preview": "http://bootswatch.com/journal/", - "css": "http://bootswatch.com/journal/bootstrap.css", - "css-min": "http://bootswatch.com/journal/bootstrap.min.css" - }, - - { - "name": "Readable", - "description": "Optimized for legibility.", - "thumbnail": "http://bootswatch.com/readable/thumbnail.png", - "preview": "http://bootswatch.com/readable/", - "css": "http://bootswatch.com/readable/bootstrap.css", - "css-min": "http://bootswatch.com/readable/bootstrap.min.css" - }, - - { - "name": "Simplex", - "description": "Mini and minimalist.", - "thumbnail": "http://bootswatch.com/simplex/thumbnail.png", - "preview": "http://bootswatch.com/simplex/", - "css": "http://bootswatch.com/simplex/bootstrap.css", - "css-min": "http://bootswatch.com/simplex/bootstrap.min.css" - }, - - { - "name": "Slate", - "description": "Shades of gunmetal gray.", - "thumbnail": "http://bootswatch.com/slate/thumbnail.png", - "preview": "http://bootswatch.com/slate/", - "css": "http://bootswatch.com/slate/bootstrap.css", - "css-min": "http://bootswatch.com/slate/bootstrap.min.css" - }, - - { - "name": "Spacelab", - "description": "Silvery and sleek.", - "thumbnail": "http://bootswatch.com/spacelab/thumbnail.png", - "preview": "http://bootswatch.com/spacelab/", - "css": "http://bootswatch.com/spacelab/bootstrap.css", - "css-min": "http://bootswatch.com/spacelab/bootstrap.min.css" - }, - - { - "name": "Spruce", - "description": "Camping in the woods.", - "thumbnail": "http://bootswatch.com/spruce/thumbnail.png", - "preview": "http://bootswatch.com/spruce/", - "css": "http://bootswatch.com/spruce/bootstrap.css", - "css-min": "http://bootswatch.com/spruce/bootstrap.min.css" - }, - - { - "name": "Superhero", - "description": "Batman meets... Aquaman?", - "thumbnail": "http://bootswatch.com/superhero/thumbnail.png", - "preview": "http://bootswatch.com/superhero/", - "css": "http://bootswatch.com/superhero/bootstrap.css", - "css-min": "http://bootswatch.com/superhero/bootstrap.min.css" - }, - - { - "name": "United", - "description": "Ubuntu orange and unique font.", - "thumbnail": "http://bootswatch.com/united/thumbnail.png", - "preview": "http://bootswatch.com/united/", - "css": "http://bootswatch.com/united/bootstrap.css", - "css-min": "http://bootswatch.com/united/bootstrap.min.css" - } - - ] - -} \ No newline at end of file -- cgit v1.2.3