Most states and municipalities adopt internationally recognized uniform standards, like the NFPA or IFC Fire Code. These standards are almost never adopted completely in their original form. There are usually amendments at the state or local level. Some places, like California, also write standards for specific items (like CO detectors) directly into state statute.
The information for this answer was found on our Carbon Monoxide & Smoke Detector Laws answers.