Snipcart, customising the cart - snipcart

Is it possible to customise say the colour of the button on the snipcart checkout? Or the font family?
I looked at some tutorials but they seem to be for an old version

The same approaches to customize the cart can be used for the V3 and more.
In your case, you can change colors and fonts by overriding the CSS.
To do this, add a separate CSS file after the one provided by Snipcart with your own CSS rules targeting the same selectors.

Related

Dynamically loading custom fonts in iOS

Can you dynamically load custom fonts in iOS similar to how you do in Javascript?
I have seen few questions about this but they are quite outdated or don't really answer the question.
I don't want to add a font to my application/register it in the info.plist. I want to be able to dynamically load a custom new font that is not in my library then use it within my app.
The only fonts you can download dynamically and use are Apple's own fonts. You can include a font and use it, and you can even make it available to other apps ("font provider"), but you cannot download an arbitrary font. That would be a security hole and Apple doesn't permit it.

Change color-theme in whole iOS application

I am going to implement Alert feature in my application.
When user taps an alert button my application is about to change all orange (default) colors to red (Navigation bar, switches, Tab bar, Buttons, views and other stuff).
I want to implement it using "css" files also known as stylesheets.
I've found two libraries: Motif and NUI.
The most important problem is to dynamically change theme inside application. Motif can do this but I want to do it more simple.
Also I learned that NUI can change the app theme too but I can't to change it dynamically.
P.S. I am using storyboard and XIB-files. I need to add runtime attribute for object's key-path. This attribute will go to my stylesheet file and apply styles. It's the most simple way I think.
Can I do it simply and without any libraries?
P.S.S. NUI is more simple for me. Maybe you know how to change styles when application runs.
There are ways of making this work, but not very simply. So your options are either to construct your own solution, or use a library.
If you are looking for something that feels easier and more native than NUI or Motif, and which also lets you assign styles and see them rendered live inside your storyboards, take a look at my library for this: https://github.com/daniel-hall/Stylish
Here is a demonstration of changing the "stylesheet" (which can be created either in code, or in an external JSON file) at runtime:

Are there any convenient ways for managing color schemes in an iOS app?

I was wondering if there are any standard or convenient ways for managing color schemes with storyboards in an iOS app, instead of having to manually change the colors of many different UI objects.
Thanks!
There is a tintColor that a few interface elements will pick up by default. You can configure the storyboard (right side menu) on the Global Tint setting.
If you want more costumization, there is a cool recent feature called UIAppearance. It lets you costumize interface elements by code, and that is applied in all such elements across the app.
Here is more info:
http://nshipster.com/uiappearance/
This is a fine question. We once had to do a complete color palette adjustment in a very large (> 100 view controller) app, and it was a suboptimal experience. For colors that are defined in code, the changes were easy enough. For colors specified in xibs or storyboards, though, it sucked. Because IB stores colors as raw double RGB values, there's no easy way to grep through the xib and storyboard xml files to do a simple search and replace. I wound up having to write a Ruby script that would find RGB values in the XML files, convert the doubles to integers in the (0..255) range, and then prompt the user to enter new values. The script cached the user's answers so that the user wasn't prompted multiple times for the same color values.
In hindsight, I still would prefer to specify colors in the storyboards & xibs so that it's as WYSIWYG as possible, and instead insist that the designers can make the changes themselves if they ever decide to modify the palette. :)

Applying themes programatically in iOS 7

Does anyone know what is best way to implement setting concept for changing themes throughout the app including the font colour, font family name and font Size in iOS 7
Thanks in advance
You could make a CSS type Style Sheet class in your code where you define all your font type, colours, etc. using macros and use those macros for setting those fields at the required places. When the user goes to the settings page and chooses a different theme, you just need to handle those macros. Hope it helps.

Redefine standard textstyles in iOS7

Is it possible to redefine standard text styles: UIFontTextStyleBody, UIFontTextStyleHeadline, etc.?
Seems that it's not.
As I understand it's similar to the custom CSS sheet in Safari — user select fonts he like, and then he see those fonts in apps, that support dynamic fonts.
Maybe UIAppereance can be to help? It allows you to set fonts and styles for any kind of view/element in any controller.

Resources